This article is mainly about how to convert images to PDF and add bookmarks to PDF with the application Image to PDF OCR Converter.
Image to PDF OCR Converter is a powerful command line application that supports to convert various image formats to PDF and make different settings to the converted PDF such as add bookmarks to PDF, edit PDF information, etc. The input image formats include JPG, BMP, PNG, GIF, TIF, TGA, DCX, EMF, WMF, etc.
Only in some simple steps, you will convert images to PDF with bookmarks successfully.
1. Download and unzip
Please free download Image to PDF OCR Converter firstly. The downloaded file is a ZIP file, so please unzip the downloaded ZIP file to a folder on the computer.
2. Input commands
This application is MS-DOS oriented, so please open the MS-DOS command prompt window in which you are able input commands first. To know how to input the commands, you can read the readme.txt document in the unzipped file. To make you better understand how to use command line application to convert images to PDF with bookmarks, please refer to the following command line template to input your commands.
img2pdf [options] <Image-file> [<PDF-file>]
In the above command line template:
img2pdf: refers to the path of the called program—img2pdfocr.exe.(In the unzipped folder, you can find the called program—img2pdfocr.exe.)
[options]: refers to the parameters you set for the conversion.
<Image-file>: refers to the path of the source image.
[<PDF-file>]: refers to the path where you’d like to save the password protected PDF file.
To add bookmarks to the created PDF, please use the option: -bookmark <int> which is used to create bookmark to PDF file and it can be one of the following.
- -bookmark -1: don't create bookmarks
- -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>: "num" must >= 0, specify first number in bookmarks
D:\img2pdfocr\img2pdfocr.exe -bookmark 3 F:\ australian.png E:\ australian.pdf
The above example is to convert an australian.png image to australian.pdf and use filenames as bookmarks of the converted PDF document.
In a few minutes, you can get the output PDF file in the output folder.
If you are interested in this command line application, you can get Image to PDF OCR Converter here.