Adjusting DPI When Converting a TIFF Image to a PDF

Snowbound Software’s RasterMasterTM for the JavaTM Platform includes the ability to adjust the DPI (dots per inch) when converting a TIFF image to a PDF to prevent the image from appearing altered.

For example, when converting an image from a TIFF that has a resolution of 204/98 pixels/inch, your image may appear distorted. The reason that the image does not appear as it should is that the horizontal DPI is not the same as the vertical DPI. The following code fixes this problem:

if (Simage.getXdpi() != Simage.getYdpi())

Simage.IMG_resize_bitmap(Simage.getWidth(),(Simage.getXdpi() * Simage.getHeight()) / Simage.getYdpi());

Learn More About TIFF to PDF Conversion

PDF to TIFF - Streamline workflow and standardize how images are viewed across your organization.
Learn More
In addition to our Tech Tips section, our document and image Solutions Section provides business application examples and industry-specific examples including image conversion and image compression.