Compress image to PDF and set PDF resolution

When compressing image to PDF, you are allowed to set resolution of PDF with the help of ImagePDF Image to PDF Compressor which is a command line application. In this article, you will see how to use this application and meet your requirement.

Image to PDF Compressor is able to compress image or black-and-white image with several kinds of compression methods. It can also use lossless compression method for JBIG2 or JPEG2000 format image. At the same time, it can set different kinds of parameters for created PDF document like PDF resolution.

In order to make the conversion and compress image, please do as follows:

1. Free download Image to PDF Compressor and extract to your computer.

2. Read the .txt document in unzipped file package to see how to use this command line application.

3. Open MS-DOS interface to input the commands into it.

4. Please follow the command line sample below to write your own ones:

img2pdfjb2 [options] <Image-file> [<PDF-file>]

The options used to compress image are

-lossless             : lossless compression for JBIG2 and JPEG2000
-colorimg <int>       : set compression method for color image
     -colorimg 0: no change compression for color image file
     -colorimg 1: compress color image file with JPEG arithmetic
     -colorimg 2: compress color image file with JPEG2000 arithmetic
-bwimg <int>          : set compression method for black and white image
     -bwimg 0: no change compression for black and white image file
     -bwimg 1: compress black and white image file with CCITT G4 arithmetic
     -bwimg 2: compress black and white image file with JBIG2 arithmetic

If you need to edit the resolution of PDF, you will use the options

-dpi <int>            : set DPI resolution to output PDF file
      -dpi  0    : use the default image width and height information
      -dpi -1    : take DPI info from original image file
      -dpi <int> : set resolution to output PDF file

Then please see the following command line examples:

img2pdfjb2 –colorimg 2 –bwimg 1 –dpi 800 C:\input.bmp C:\output.pdf
img2pdfjb2 –colorimg 0 –bwimg 2 –dpi 0 C:\test.tif C:\test.pdf

5. Hit Enter button to run the commands.

In the end of this article, if you need to know more information of this application, please visit the homepage of ImagePDF Image to PDF Compressor. If you want to use the application for free, please click the following button to download it.

free download Image to PDF Comrpessor

Related Posts: