With the help of Image to PDF Converter, you can convert image to PDF with bookmarks via command line.
Image to PDF Converter is a powerful command application. It can not only convert JPG, PNG, BMP, GIF, TIFF, PSD, WMF, EMF, PCX, PIC, etc. image files to PDF documents, but also supports to add bookmarks (Bookmarks are navigational links to content or points of interest within a document, which makes it easier to locate and link to a special part of the document.) to the converted PDF document.
In the following paragraphs, you will see how to use this command application to convert multiple images to a single PDF and add bookmarks to the converted PDF document.
First of all, please download this application via clicking the following button.
After the download, please unzip the ZIP file to a folder on your computer. In the unzipped folder, you can see an executable file named img2pdf.exe which is the called program in the MS-DOS command prompt window.
Then, please open the MS-DOS command prompt window in which you can input commands. In the opened MS-DOS command prompt window, please refer to the following command line template to input your own commands.
img2pdf [options] <Image-file> [<PDF-file>]
In the above command line template,
- img2pdf: call the program
- [options]: set parameters for the conversion
- <Image-file>: specify the input image
- [<PDF-file>]: specify the output PDF
To add bookmarks to the converted PDF, you can use the following three options: -bookmark -2, -bookmark -3, -bookmark -4, and -bookmark <num>. Their meanings are explained as follows:
- -bookmark -2: read bookmarks from bookmark.ini file
- -bookmark -3: use filenames as bookmarks
- -bookmark -4: use the filenames as bookmarks, one bookmark at the first page of each tif
- -bookmark <num>: specify first number in bookmarks
For example,
img2pdf.exe -bookmark 3 C:\in.png C:\out.pdf
This example is to convert a PNG image to PDF document and use filenames as the bookmarks of the created PDF.
At last, please hit the Enter button on the keyboard to run the commands.
Several seconds later, you can get the created PDF document in the specified location.
For more usage about this command line application, please download the free trial version and browse the readme.txt document in the unzipped folder.
To get full version of this command line application, you can buy Image to PDF Converter here