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.

Related Posts: