Tips For Success

Having the best tools for document imaging is only half of the equation. Our Tech Tips are designed to provide you with valuable information to help you succeed by achieving faster results with our RasterMaster Imaging and Conversion SDKs or VirtualViewer high-speed document and image viewers. New time-saving tips are added monthly - you can receive them through Imaging News or our Tech Tips RSS feed.

Get Started with VirtualViewer

Tech Tip: Adjusting Page Resolution

Snowbound Software’s RasterMaster™ for the Java™ Platform includes the ability to move pages around by inserting and removing pages. If you find that the image quality diminishes after moving pages around in a PDF document, you may want to adjust the resolution to improve the pages’ appearance. To improve the image’s resolution, call the IMGLOW_set_pdf_input(int dpi, int bits_pix) method before decompressing. You will need to call this method once. Set the dpi variable value to 200 and the bits_pix variable value to 24.

The following describes the IMGLOW_set_pdf_input(int dpi, int bits_pix) method:

IMGLOW_set_pdf_input(int, int)

This method allows the conversion of PDF files into bitmaps when decompressed by RasterMaster products. It allows the programmer to set the bitmap size and pixel depth of the resulting bitmap.

Syntax
int IMGLOW_set_pdf_input(int dpi, int bits_pix);

Remark
The table below lists the IMGLOW_set_pdf_input(int, int) method variable descriptions.

Variable

Description

dpi

Dots per inch (DPI) in which to render the PDF.

Typical DPI is 300.

For 1-bit images, the DPI is 200.

For color images, the DPI is 100 or 200.

bits_pix

Bitmap pixel depth for resulting rendered PDF image. Set to 1 or 24.