This sample provides a GUI that lets you choose a directory, then converts all of the files in the directory. You can find the samples in the \samples\convert directory.

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.

  • IMG_display_bitmap_aspect(java.awt.Graphics, java.awt.Container, int, int, int, int, int) displays the current image, corrected for aspect ratio, at the current X andY coordinates.
  • IMGLOW_get_pages(String) prints the total number of pages in the input document.
  • IMGLOW_set_document_input(int, int, int) specifies the input DPI and bit-depth for PDF, MSOffice, RTF, PCL, and AFP files.
  • IMG_decompress_bitmap(String, int) reads in a document in any format and converts it to a valid Snowbound image.
  • IMG_promote_24(void) promotes 1, 4, or 8-bit images to 24-bit.
  • IMG_color_gray(void) reduces a color image to 8-bit gray scale.
  • IMG_save_bitmap(String, int) saves the current page and print the resulting status code.