Image to PDF Converter

How to convert image to PDF and set page margin to PDF

Do you want to convert a series of image to PDF for printing, sending via e-mail or web publishing? If so, the application Image to PDF Converter will be a good choice for you.

Image to PDF Converter is a professional command line application. With it, you can convert various images (JPG, PNG, BMP, GIF, TIFF, PSD, WMF, EMF, PCX, PIC, etc.) to PDF. With it, you can also set different parameters  such as set PDF page margin, page size, resolution, PDF properties, PDF passwords, etc. for the created PDF document.

Just by following the instructions shown below, you can successfully convert multiple images to a single PDF document and redefine page margin for the created PDF document.

Firstly, please download the package of Image to PDF Converter.

After the download, please extract the ZIP file to a folder on your computer disk. In the extracted folder, there is an executable file named img2pdf.exe which is the called program in the MS-DOS command prompt window.

Then, please open MS-DOS command prompt window so that you are able to input commands.

After that, please follow command line template shown below to input your commands.

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

In this command line template:

  • img2pdf: call the program
  • [options]: set parameters
  • <Image-file>: specify the input image
  • [<PDF-file>]: specify the output PDF

To set page margin to the converted PDF, you can use the following options:

-margin <string> : set page margin to PDF file

  • -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

If you still don’t understand the above command line template and options, maybe the following example can help you.

img2pdf.exe -margin 100x100x100x100 C:\in. jpg C:\out.pdf

This example is to convert a JPG image to PDF and set top margin, bottom margin, left margin and right margin of the PDF page as 100pt respectively.

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

After a while, you can get the output PDF document.

If you want to know more options and usage of this command line application, you can browse the TXT document named as readme.txt in the unzip package.

If you want to get full version of this command line application, you can buy Image to PDF Converter here.

Image to PDF Converter

How to deskew/despeckle black and white image to PDF

This article is mainly about how to deskew/despeckle black and white image to PDF with the command line application Image to PDF Converter.

Image to PDF Converter is a powerful application that can convert JPG, PNG, BMP, GIF, TIFF, PSD, WMF, EMF, PCX, PIC, etc. image files to PDF and make different settings such as set page size, resolution, PDF passwords, PDF property, etc. for the converted PDF. In addition, it supports to deskew and despeckle the black and white image file during converting black and white image to PDF.

In the following contents, you will see how to use command line application to deskew and despeckle black and white image to PDF.

1. Download and unzip

At first, please download Image to PDF Converter. After downloading, please unzip the downloaded file to a local disk on the computer. In the unzipped folder, you will able to see an executable file named img2pdf.exe which is the called program in the MS-DOS command prompt window

2. Input commands

To input commands, please open the MS-DOS command prompt window in which you can 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
  • [options]: set options
  • <Image-file>: specify the source image file
  • [<PDF-file>]: specify the target PDF file

To deskew and despeckle the black and white image file, please use the following options:

  • -skewcorrect: skew correct for black and white image file
  • -despeckle: despeckle for black and white image file

For example,

img2pdf.exe -skewcorrect –despeckle C:\in.tif C:\out.pdf

This example is to deskew and despeckle black and white TIF to PDF document.

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

Several seconds later, you can get the desired PDF document in the specified location.

This is the end of this article and you can enjoy full version of this command line application after you buy Image to PDF Converter.

Image to PDF Converter

How to convert image to PDF and watermark PDF via command line

If you want to convert image to PDF with watermarks so that you can easily upload, send, print, etc. them, the command line application Image to PDF Converter will be a good assistant for you.

With the help of Image to PDF Converter, you are able to convert various images such as JPG, PNG, BMP, GIF, TIFF, PSD, WMF, EMF, PCX, PIC, etc. to PDF with watermarks. (Watermark is a recognizable pattern or image in paper that is often used as security features of banknotes, passports, postage stamps, etc. to protect copyright and prevent counterfeiting.)

To know how to use this command line application to convert image to PDF and watermark PDF, please do as follows:

At first, please free download the installer of this application via clicking the following button.

download Image to PDF Converter

After the download, please unzip the downloaded ZIP file to a local disk on the computer. In the unzipped folder, there is an executable file named img2pdf.exe which is the called program in the MS-DOS command prompt window

Then, please open the MS-DOS command prompt window so that can input commands. In the opened MS-DOS command prompt window, please follow the command line template shown below to input your commands.

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

Where:

  • img2pdf: call the program
  • [options]: set parameters
  • <Image-file>: specify the input image
  • [<PDF-file>]: specify the output PDF document

In order to add watermarks to the PDF document, please use the options: -wtext <string>.

For example,

img2pdf.exe -wtext "ImagePDF" "C:\in.tif" C:\out.pdf

This example is to convert TIF to PDF and add watermark "ImagePDF" to the converted PDF document.

You can also use the following options to set parameters for the watermark.

-wtype <int> : type of watermark

  • 0 : normal watermark
  • 1 : watermark on header
  • 2 : watermark on footer

-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

-wc <string> : color of watermark,

  • FF0000: Red color
  • 00FF00: Green color
  • 0000FF: Blue color
  • HexNum: Other colors

-wx <int> : X offset of watermark

-wy <int> : Y offset of watermark

At last, please hit the Enter button on the keyboard to run the commands.

Several seconds later, you can get the watermark PDF document in the location you specify.

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

Image to PDF Converter

How to invert color from black and white image to PDF

The command line application Image to PDF Converter allows you to invert color from black and white image to PDF on Windows platform.

Image to PDF Converter is a professional application that can convert image (JPG, PNG, BMP, GIF, TIFF, PSD, WMF, EMF, PCX, PIC, etc.) to PDF documents and make different settings for the created PDF documents. In addition, it allows users to change the color of black and white image.

Only in some simple steps, you can successfully convert black and white images to PDF and invert the color of black and white images. Please continue to read the following contents:

1. Download and unzip

Please free download this software by clicking the following button.

download Image to PDF Converter

Then, please extract the downloaded file to a local disk on the computer. After the extraction, you can find an executable file named img2pdf.exe which is the called program in the extracted package.

2. Input commands

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

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

Where:

  • img2pdf: call the program
  • [options]: set parameters
  • <Image-file>: specify the source black and white image
  • [<PDF-file>]: specify the target PDF document

To invert the color of black and white image, you can use the following options: -chkbwcolor which is used to check and invert color for black and white image file.

For example,

img2pdf.exe -chkbwcolor C:\in.jpg C:\out.pdf

This example is to convert a black and white JPG image to PDF and invert the color of the black and white images in the converted PDF document.

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

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

This is the end of this article and you can know more usage and parameters about this command line application after you try the free trial version. If you want to get full version of this application, please buy Image to PDF Converter here.

Image to PDF Converter

How to convert image to PDF with bookmarks via command line

With the help of Image to PDF Converter, you can convert image to PDF with bookmarks via command line.

Image to PDF Converter is a powerful command application. It can not only convert JPG, PNG, BMP, GIF, TIFF, PSD, WMF, EMF, PCX, PIC, etc. image files to PDF documents, but also supports to add bookmarks (Bookmarks are navigational links to content or points of interest within a document, which makes it easier to locate and link to a special part of the document.) to the converted PDF document.

In the following paragraphs, you will see how to use this command application to convert multiple images to a single PDF and add bookmarks to the converted PDF document.

First of all, please download this application via clicking the following button.

download Image to PDF Converter

After the download, please unzip the ZIP file to a folder on your computer. In the unzipped folder, you can see an executable file named img2pdf.exe which is the called program in the MS-DOS command prompt window.

Then, please open the MS-DOS command prompt window in which you can input commands. In the opened MS-DOS command prompt window, please refer to the following command line template to input your own commands.

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

In the above command line template,

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

To add bookmarks to the converted PDF, you can use the following three options: -bookmark -2, -bookmark -3, -bookmark -4, and -bookmark <num>. Their meanings are explained as follows:

  • -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>: specify first number in bookmarks

For example,

img2pdf.exe -bookmark 3 C:\in.png C:\out.pdf

This example is to convert a PNG image to PDF document and use filenames as the bookmarks of the created PDF.

At last, please hit the Enter button on the keyboard to run the commands.

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

For more usage about this command line application, please download the free trial version and browse the readme.txt document in the unzipped folder.

To get full version of this command line application, you can buy Image to PDF Converter here