PDF OCR Compressor

How to compress color image into PDF file with command line

With the help of the command line application PDF OCR Compressor, you can compress color image into PDF file.

PDF OCR Compressor is a professional command line application that can compress color, black and white, grayscale images into PDF file with JPEG2000 compression and JBIG2 compression.

To know how to compress color and grayscale image into PDF, please do as follows.

Firstly, please free download PDF OCR Compressor and unzip the downloaded ZIP file to a folder on your local computer disk. In the unzipped folder, you can see an executable file—pdfocrjb2.exe which is the called program in the MS-DOS command prompt window.

Secondly, please open the MS-DOS command prompt window in which you can input commands.

Then, please refer to the following command line template to input your commands.

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

  • img2pdf: call the program—pdfocrjb2.exe. (Please input the path of the called program—pdfocrjb2.exe.)
  • [options]: set options to control the conversion.
  • <Image-file>: import the image. (Please input the path of the input image.)
  • [<PDF-file>]: export the PDF file. (Please specify the name and path of the output PDF file.)

To compress the color image, you can use the following options:

  • -colorimg <int> : set compression method for color image
  • -colorimg 0: no change compression for color image file
  • -colorimg 1: compress color image file with JPEG arithmetic
  • -colorimg 2: compress color image file with JPEG2000 arithmetic

For example,

F:\pdfocrjb2\pdfocrjb2.exe -colorimg 2 “D:\source.jpg” “E:\source.pdf”

This example is to convert source.jpg image to source.pdf and compress the color image file with JPEG2000 arithmetic.

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

After a while, you can see the created PDF file in the specified folder and view the PDF file with a PDF reader installed on the computer.

This is the end of this article and you can get full version of PDF OCR Compressor here.

Image to PDF OCR Converter

PDF Creator—Image to PDF OCR Converter

PDF format allows the reliable reproduction of published material on many different platforms (requiring only the use of free reader software), thus it is a way to conveniently and quickly disseminate information including text, tables, and graphics.
PDF (Portable Document Format) file is a self-contained cross-platform document. In plain language, it is a file that will look the same on the screen and in print, regardless of what kind of computer or printer someone is using and regardless of what software package was originally used to create it.

Image to PDF OCR Converter is a command line application which can directly convert multiple image formats, such as JPG, GIF, PNG, BMP, TIF, and so on to PDF format.

Free download Image to PDF OCR Converter and unzip it to your computer.

Basic Usage of this command line application:

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

Where [options] can be the following:

  • -ocr <int>: create full-text searchable PDF file
  • -xres <int> : set X resolution to image file
  • -yres <int> : set Y resolution to image file
  • -ocrrect <string> : set a rectangle region for OCR
  • -aligntextypos : align OCRed text contents by Y position
  • -quality <int> : set quality for JPEG, JPEG2000 compression
  • -width <int> : set page width to PDF file
  • -height <int> : set page height to PDF file
  • -rotate <int> : rotate pages, 90, 180, 270
  • -view : view PDF file after creation
  • -skewcorrect : skew correct for black and white image file
  • -despeckle : despeckle for black and white image file
  • -chkbwcolor : check and invert color for black and white image
  • -dpi <int> : set DPI resolution to output PDF file
  • -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
  • -openpwd <string> : set 'open password' to PDF file
  • -ownerpwd <string> : set 'owner password' to PDF file
  • -bookmark <int> : create bookmark to PDF file
  • -mergepdf <string> : merge two PDF files into one PDF file
  • -pdfx : create PDF/X compliance PDF file
  • -pdfa : create PDF/A compliance PDF file
  • -noempty : delete empty pages from PDF file
  • -margin <string> : set page margin to PDF file
  • -wtext <string> : watermark on printed document
  • -wtype <int> : type of watermark

To know more options, please have a try of Image to PDF OCR Converter.

Image to PDF OCR Converter

How to convert image to PDF and add watermark to PDF with command line

Do you want to convert image to PDF and add watermark to PDF? If so, the command line application Image to PDF OCR Converter helps you a lot.

Image to PDF OCR Converter is a professional command line application. It can not only convert JPG, JPEG, GIF, PNG, BMP, TIF, TIFF, PSD, WMF, EMF, PCX, etc. image format to PDF format, but also can add watermark to the created PDF to prevented it from unauthorized use.

The following instruction will show you how to use this command line application to convert image to PDF with watermarks.

Step 1. Download and unzip

Please download the package of Image to PDF OCR Converter. Since the downloaded file is a ZIP file, you need to unzip it to a folder on your computer. In the unzipped folder, there is an executable file—img2pdfocr.exe which is the called program in the MS-DOS interface (command prompt window).

Step 2. Type commands

In order to type commands, you need to open the command prompt window first. Before typing your commands, please read the readme.txt file which explains the usage of this software.

According to the usage, please type your commands referring to the command line template shown below.

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

In the above template,

  • img2pdf: the called program—img2pdfocr.exe. (Please type the full path of the executable file— img2pdfocr.exe)
  • [options]: the options you set to control the conversion. (For the options, you can browse the readme.txt in the unzipped folder.
  • <Image-file>: the input image. (Please type the full path of the input image.)
  • [<PDF-file>]: the output PDF file. (Please type the full path of the output PDF.)

To watermark the created PDF, please use the following options.

  • -wtext <string>: watermark on printed document
  • -wtype <int> : type of watermark
  •  -wf <string>: font name of watermark
  • -wh <int>: font size of watermark
  • -wb : specify bold font
  • -wi: specify an italic font
  • -wu: specify an underlined font
  • -ws: specify a strikeout font
  • -wa <int>: angle of watermark
  • -wbox <string> : a rectangle to output formatted text.
  • -wc <string>: color of watermark,
  •  -wx <int>: X offset of watermark
  • -wy <int>: Y offset of watermark

For example,

D:\img2pdfocr\img2pdfocr.exe -wtext “ImagePDF” “E:\logo.png” “F:\logo.pdf“

The above command line is to convert a logo.png image to logo.pdf with the text watermark “ImagePDF”.

In fact, this software can do far more than the above. If you want to know functions of it, you can have a try of Image to PDF OCR Converter.

Image to PDF OCR Converter

How to convert image to PDF and set top/bottom/ left/right margin to PDF page

This article is mainly about how to convert image to PDF and set top/bottom/ left/right margin to PDF page with the command line application Image to PDF OCR Converter.

Portable Document Format (PDF) captures formatting information from a variety of desktop publishing applications, making it possible to send formatted documents and have them appear on the recipient's monitor or printer as they were intended.

Image to PDF OCR Converter is a powerful command line application for converting images in the format of JPG, JPEG, GIF, PNG, BMP, TIF, TIFF, PSD, WMF, EMF, PCX, etc. to PDF format. During the conversion, you can customize the top margin, bottom margin, left margin and right margin for the created PDF pages.

In the following contents, you will see how to use this application to convert image to PDF and set PDF page margins.

1. Download and extract

Please download the package of Image to PDF OCR Converter. After the download, please extract it to place to your computer. In the extracted package, you can find an executable file—img2pdfocr.exe which is the called program for the conversion.

2. Type commands

Please open the MS-DOS interface (namely command prompt window) in which you can type commands. Then, please refer to the command line template to type your commands in the command prompt window.

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

Where:

  • img2pdf: call the program.
  • [options]: set parameters to control the conversion.
  • <Image-file>: import the image you want to convert.
  • [<PDF-file>]: export the created PDF file to a folder on your computer.

To set PDF page margins, please use the following options:

  • -margin 10 : set margin to 10pt to left
  • -margin 10x10 : set margin to 10pt to left, top
  • -margin 10x10x10 : set margin to 10pt to left, top, right
  • -margin 10x10x10x10 : set margin to 10pt to left, top, right, bottom

For example,

D:\img2pdfocr\img2pdfocr.exe -margin 10x10x10x10 “D:\bill.jpg” “E:\ bill.pdf”

This example is to convert the bill.jpg image  to bill.pdf with top margin, bottom margin, left margin and right margin as 10 pt respectively.

After typing the commands, please remember to hit the Enter button on the keyboard to run the typed commands.

To know more options about this command line application, you can browse the readme.txt file in the extracted package.

Kind remember: The trial version will stamp watermarks on the created PDF. To eliminate this limitation, please buy the full version of Image to PDF OCR Converter.

Image to PDF OCR Converter

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.