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.

Related Posts:

This entry was posted in Image to PDF OCR Converter and tagged . Bookmark the permalink.

Comments are closed.