How to convert image to PDF and set page margin?

Need to convert image to PDF document? The command line application ImagePDF Image to PDF Converter will do you a great favor. The easy operations and high speed of the application will save you a lot of time.

The following contents emphasize the steps and options for the conversion from image file to PDF document. At first, please free download Image to PDF Converter to your computer and unzip the file to some location. The executable file img2pdf.exe in the unzipped file is the called program of this command line application.

Please browse the file readme.txt in the folder to learn all usage and options about Image to PDF Converter before using it.

The usage command line template is like the following one:

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

Other options are available, too. For example, if you want to set PDF page margins, you can use the option –margin <string>.

The following command line examples are for your better understanding:

img2pdf –margin 10 C:\A.tga C:\B.pdf
img2pdf –margin 15x20 D:\a.jpg D:\a.pdf
img2pdf –margin 25x20x25 C:\input.bmp C:\output.pdf
img2pdf –margin 30x20x30x20 C:\test.gif C;\test.pdf

In the examples:

-margin 10 is to set left page margin as 10 pt.
-margin 15x20 is to set left page margin and top page margin as 15 pt and 20 pt respectively.
-margin 25x20x25 is to set left, top, right page margin as 25 pt, 20 pt and 25 pt respectively.
-margin 30x20x30x20 is to set left, top, right and bottom page margin as 30 pt, 20 pt, 30 pt and 20 pt respectively.

For using this useful application, please free download Image to PDF Converter to your computer.

Related Posts: