This section describes how to quickly get started with the RasterMaster Java. Additional samples may be found in RasterMaster Java Samples.

For an initial introduction, we’ve duplicated the Single Conversion Sample below, which we find to be the fastest way to get started with RasterMaster® for Java.

The Convert sample uses three routines that are at the heart of RasterMaster Java:

  1. IMG_decompress_bitmap(String, int) reads in a document in any format and converts it to a valid Snowbound image.
  2. IMG_display_bitmap_aspect(java.awt.Graphics, java.awt.Container, int, int, int, int, int) displays a valid Snowbound image.
  3. IMG_save_bitmap(byte, int) saves the valid Snowbound image to any available format.

The methods mentioned above are described in detail elsewhere on this site and in the RasterMaster Java API. This site also covers the following topics:

  1. How to read and save multi-page documents. For more information, please see Working with multi-page documents.
  2. How to adjust the color, compression, and resolution attributes of documents for performance, better quality output, or smaller output. For more information, please see Color Manipulation.
  3. How to extract text and search for text in documents. For more information, please see Input documents and images.

For the full method reference, see the RasterMaster Java API documentation.

The Simple Convert Sample

This sample converts all of the pages in one document. You can find the samples in the [RM Java install dir]\sample-code\com\snowbound\samples\convert\.

For instructions on running this sample, please see the instructions to Run RasterMaster samples in your IDE or to Run samples from the Command Prompt in the Overview.

Listed below are the methods used in this sample:

  • Snowbnd() – RasterMaster library constructor
  • IMGLOW_get_filetype
  • IMGLOW_get_pages
  • IMGLOW_set_ooxml_license
  • decomp_vect
  • IMGLOW_set_document_input
  • IMGLOW_set_fontmap_path
  • IMGLOW_set_overlay_path
  • getXdpi, getYdpi
  • getHeight, getWidth
  • IMG_decompress_bitmap
  • IMG_diffusion_mono
  • IMG_color_gray
  • IMG_promote_24
  • setXdpi, setYdpi
  • IMG_resize_bitmap
  • snow.IMG_save_bitmap