How to compress black and white image into PDF file with command line

The command line application PDF OCR Compressor allows you to compress black and white image into PDF file on Windows platforms.

PDF OCR Compressor is a powerful command line application that can be used both as a PDF creator and a PDF compressor. As a PDF creator, it can convert JPG, PNG, BMP, GIF, TIF, PSD, WMF, EMF, PCX, PIC, etc. format image to PDF file. As a PDF compressor, it can compress black and white, color, and grayscale images during the conversion from image to PDF.

In the following contents, you will see how to use this application to compress black and white image into PDF file.

1. Download and unzip

Please download the package of PDF OCR Compressor and unzip it to a place on your computer. In the unzipped folder, you can see an executable file—pdfocrjb2.exe and it is the called program in the MS-DOS command prompt window.

2. Type commands

To type commands, you need to open the command prompt window first. In the opened command prompt window, please type your commands referring to the following command line template.

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

  • img2pdf: call the program—pdfocrjb2.exe.
  • [options]: set options for the conversion.
  • <Image-file>: specify the input image.
  • [<PDF-file>]: specify the output PDF file.

To compress the black and white image, please use the option:-bwimg <int> which is used to set compression method for black and white image. It can be one of the following:

  • -bwimg 0: no change compression for black and white image file
  • -bwimg 1: compress black and white image file with CCITT G4 arithmetic
  • -bwimg 2: compress black and white image file with JBIG2 arithmetic

For example,

F:\pdfocrjb2\pdfocrjb2.exe -bwimg 1 “F:\juice.png” “D:\ juice.pdf”

F:\pdfocrjb2\pdfocrjb2.exe-bwimg 2 “E:\work.jpg” “F:\work.pdf”

The first example is to compress the black and white image —juice.png with CCITT G4 arithmetic and convert the PNG image to juice.pdf. The second example is to compress the black and white image—work.jpg with JBIG2 arithmetic and convert the JPG image to work.pdf.

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

Several seconds later, you can see the created PDF in the specified location.

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

Posted in PDF OCR Compressor | Tagged | Comments Off

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.

Posted in PDF OCR Compressor | Tagged | Comments Off

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.

Posted in Image to PDF OCR Converter | Tagged | Comments Off

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.

Posted in Image to PDF OCR Converter | Tagged | Comments Off

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 10×10 : 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.

Posted in Image to PDF OCR Converter | Tagged | Comments Off

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.

Posted in Image to PDF OCR Converter | Tagged | Comments Off

How to convert image to PDF/A with command line

The command line application Image to PDF OCR Converter allows you to convert JPG, JPEG, GIF, PNG, BMP, etc. image to PDF/A. (PDF/A omits features ill-suited to long-term archiving.)

Image to PDF OCR Converter is a powerful command line application that can a lot of image formats to PDF format. The supported image formats include JPG, JPEG, GIF, PNG, BMP, TIF, TIFF, PSD, WMF, EMF, PCX, PIC, etc.

The following contents will site the example of converting a JPG image to PDF/A to show you how to use this application to create PDF.

Step 1. Download and unzip

Please free download Image to PDF OCR Converter at first. You don’t have to install it, for the downloaded file is a ZIP file. The only thing you need to do is to unzip it to a local folder on your computer disk as normal. In the unzipped package, you can find an executable file named img2pdfocr.exe and it is the called program in the MS-DOS command prompt window.

Step 1. Input commands

In order to input commands, please open the MS-DOS command prompt window first. Then, please refer to the following command line template to input your commands.

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

In the above template:

  • img2pdf: call the program—img2pdfocr.exe.
  • [options]: set options for the conversion.
  • <Image-file>: specify the input image.
  • [<PDF-file>]: specify the output PDF file.

To convert image to PDF/A, please use the following option:

-pdfa: create PDF/A compliance PDF file

To make you better understand the above command line template and option, you can see the following example.

D:\img2pdfocr\img2pdfocr.exe -pdfx “E:\ catalog.jpg” “F:\ catalog.pdf”

This example is to convert the JPG image named catalog.jpg to PDF/A compliance PDF file named catalog.pdf.

After inputting the commands, please hit the Enter button on the keyboard to run the commands.

Several seconds later, you can get the desired PDF file in the folder you specify.

To know more options about this command line application, please read the readme.txt document in the unzipped package.

Note: The trial version will leave some watermarks on the created PDF file. To remove these watermarks, please buy the full version of Image to PDF OCR Converter.

Posted in Image to PDF OCR Converter | Tagged | Comments Off

How convert image to PDF/X by command line

With the help of the command line application Image to PDF OCR Converter, you can convert image to PDF/X.

Image to PDF OCR Converter is a powerful PDF creator which can help users to convert various image formats including JPG, JPEG, GIF, PNG, BMP, TIF, TIFF, PSD, WMF, EMF, PCX, PIC, to ePub. In addition, it can convert image to PDF/X. (PDF/X is used to facilitate graphics exchange.)

To know how to use this command line application to convert image to PDF/X, please do as follows.

Firstly, please free download Image to PDF OCR Converter and unzip the downloaded ZIP file to a folder on your local computer disk. In the unzipped folder, you can see an executable file named as img2pdfocr.exe which is the called program in the MS-DOS interface.

Secondly, please open the MS-DOS interface in which you can input commands. Before inputting the commands, you can read the readme.txt document which explains the usage and options of this application in detail.

According to the usage of this application, please input commands by referring to the command line template shown below:

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

In the above template:

  • img2pdf: call the program—img2pdfocr.exe. (Please input the path of the called program— img2pdfocr.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 convert image to PDF/X, please use the option: -pdfx which is used to create PDF/X compliance PDF file

If you still don’t how to input commands to convert the image to PDF/X compliance PDF file, please continue to see the following example.

D:\img2pdfocr\img2pdfocr.exe -pdfx F:\ cuisine.png D:\ cuisine.pdf

The example is to convert cuisine.png image to PDF/X compliance PDF file —cuisine.pdf.

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 Image to PDF OCR Converter here.

Posted in Image to PDF OCR Converter | Tagged | Comments Off

How convert image to PDF and merge several PDF files into one with command line

Do you want to convert image to PDF and merge several PDF files into one PDF? If so, Image to PDF OCR Converter will be a good assistant for you.

Nowadays, PDF becomes one of the most popular file formats worldwide. Compared with other file formats, PDF files have a variety of features like security, compact size, accessibility and usage restrictions. So, in some cases, you may want to convert images to PDF.

With the help of Image to PDF OCR Converter, you can convert JPG, BMP, PNG, GIF, TIF, TGA, DCX, EMF, WMF, etc. image format to PDF format and merge the converted PDF into the existing PDF.

In the following contents, you will see how to use this command line application to convert image to PDF and merge the converted PDF with the existing PDF files into one PDF.

Step 1. Download & extract

At first, please download the package of Image to PDF OCR Converter. Then, please extract the ZIP file to a folder on your computer disk. After the extraction, you can see an executable file named img2pdfocr.exe which is the called program in the MS-DOS command prompt window.

Step 2. Input commands to convert image to PDF

In the extracted package, you can also find a TXT document named readme.txt which illustrates the usage of this application in detail. After reading this manual, you can open the MS-DOS command prompt window and input commands to convert image to PDF.

If you are still confused about how to write the commands, you can refer to the following command line template to input your commands.

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

For example,

D:\img2pdfocr\img2pdfocr.exe “C:\ april.jpg” “E:\ april.pdf”

Step 3. Input commands to merge PDF files

According to the options of the command line application, the following options can be used to merge the converted PDF with existing PDF file.

-mergepdf “file1|file2|file3|…”: merge several PDF files into one

-mergepdf “C:\*.pdf”: merge PDF files into one PDF file

What’s more, you can merge the created PDF with a TXT file using the option: -mergepdf “C:\filelist.txt” which is used to merge PDF files from a .txt file

For example,

D:\img2pdfocr\img2pdfocr.exe -mergepdf “E:\ april.pdf |E:\2.pdf” C:\merge.pdf

Several seconds later, you can get the merged PDF file in the specified location.

Note: The trial version will leave some watermarks on the converted image and merged PDF. To eliminate these limitations, please buy the full version of Image to PDF OCR Converter.

Posted in Image to PDF OCR Converter | Tagged | Comments Off

How to convert images to PDF and add bookmarks to PDF by command line

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

For example,

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.

Posted in Image to PDF OCR Converter | Tagged | Comments Off