How to convert image to PDF and customize PDF properties by command line
The command line application Image to PDF OCR Converter allows you to convert JPG, PNG, BMP, GIF, TIF, etc. image to PDF and customize PDF properties such as title, author, keywords, creator, producer, etc.
Image to PDF OCR Converter is a powerful and professional application that can convert image in format of JPG, PNG, BMP, GIF, TIF, TGA, DCX, EMF, WMF, etc. to PDF format and make different settings such as set PDF properties, passwords, page size, etc. for the created PDF document.
In the following instructions, you will see how to use this command line application to convert image to PDF with customized PDF properties.
Step 1. Download & unzip
Please free download Image to PDF OCR Converter. After the download, please unzip the downloaded ZIP file to a folder on your computer disk. After the extraction, you will be able to find an executable file named img2pdfocr.exe which is the called program in the unzipped folder.
Step 2. Input commands
To input commands, you need to open the MS-DOS command prompt window in which you are able to input commands first. Then, please refer to the following command line template to input your commands:
img2pdf [options] <Image-file> [<PDF-file>]
Where:
img2pdf: call the program—img2pdfocr.exe.
[options]: set parameters for the conversion.
<Image-file>: specify the input image.
[<PDF-file>]: specify the output PDF file.
To set PDF properties, please use the following options:
- -producer <string> : set 'producer' to PDF file
- -creator <string> : set 'creator' to PDF file
- -subject <string> : set 'subject' to PDF file
- -title <string> : set 'title' to PDF file
- -author <string> : set 'author' to PDF file
- -keywords <string> : set 'keywords' to PDF file
- -credate <string> : set 'CreationDate' to PDF file
- -moddate <string> : set 'ModDate' to PDF file
For example,
D:\img2pdfocr\img2pdfocr.exe –title “Image to PDF” “F:\ sea.jpg” “F:\ sea.pdf”
This example is to convert a sea.jpg image to sea.pdf and set the title of the PDF file as “Image to PDF”.
At last, please hit the Enter button on your keyboard to run the commands.
Several seconds later, you can get the target PDF in the destination folder.
You can see the conversion effects from the following snapshots.
Output PDF file and PDF properties
Note: The trial version will leave watermarks on the converted PDF file. To eliminate this limitation, please buy the full version of Image to PDF OCR Converter.