How to convert image to PDF without empty pages by command line

If you want to convert image to PDF without empty pages, the command line application Image to PDF OCR Converter will be the optimal choice for you.

PDF - short for Portable Document Format, a file format developed by Adobe Systems. It can represent documents in a manner independent of application software, hardware, and operating systems. Each PDF file encapsulates a complete description of a fixed-layout flat document, including the text, fonts, graphics, and other information needed to display it. PDF files can look the same as the original format. If you scan a paper into PDF, it will look exactly the same like the paper. Sometimes, you may need to convert images to PDF.

Image to PDF OCR Converter is a professional command line application can convert JPG, JPEG, GIF, PNG, BMP, TIF, TIFF, PSD, WMF, EMF, PCX, PIC, etc. image format to PDF. What’s more, you can remove empty pages during  the conversion.

To know how to use this tool to convert image to PDF and delete empty pages in the created PDF, please do as follows.

Firstly, please download Image to PDF OCR Converter and extract the downloaded ZIP file to a folder on your computer. The executable file—img2pdfocr.exe is the called program of this application in the MS-DOS command prompt window.

Secondly, please open the MS-DOS command prompt window where you are able write and run commands.

Then, please write your commands referring to the following command line template.

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

In the above template, img2pdf is to call the program—img2pdfocr.exe. [options] is to set options to control the conversion. To know the options, please read the readme.txt document in the extracted folder. <Image-file> is to import the input image. [<PDF-file>] is to export the output PDF file.

To empty pages for the PDF file, please use the option: -noempty which can be used to delete empty pages from PDF file.

For example,

D:\img2pdfocr\img2pdfocr.exe -noempty “D:\ fruit.png” “E:\ fruit.pdf”

The above command line is to convert fruit.png image to fruit.pdf and delete empty pages from the created PDF file.

Lastly, please press the Enter button on the keyboard to run the commands.

Several minutes later, you can see the output PDF file in the specified folder.

This is the end of this article and you can enjoy full version of Image to PDF OCR Converter here.

Related Posts: