How to watermark PDF when converting image to PDF?

When converting image to PDF document, the command line application ImagePDF Image to PDF Converter allows you to add watermark to PDF document with different font style, color, location, etc.

Image to PDF Converter is a Windows application which can directly convert dozens of image formats, such as TIF, TIFF, JPG, JPEG, GIF, PNG, BMP, PSD, WMF, EMF, PCX, PIC and so on, into PDF format. In the following contents, please follow the steps to fulfill the conversion and then watermark PDF document at the same time.

Please free download ImagePDF Image to PDF Converter and then unzip the ZIP file to some location of the computer disk. In the conversion from image file to PDF document, you need to call the executable file img2pdf.exe as the called program.

By reading the txt document in unzipped package of Image to PDF Converter, you will see that the command line template that you need to use is like the following one:

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

And the options for watermarking PDF are like the following ones:

-wtext <string>:watermark on printed document
-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
-wx <int>             : X offset of watermark
-wy <int>             : Y offset of watermark

There are several command line examples below:

img2pdf.exe -wtext "ImagePDF" "C:\in.tif" C:\out.pdf
img2pdf.exe -wtext "ImagePDF" -wc "0000FF" "C:\in.bmp" C:\out.pdf
img2pdf.exe -wtext "ImagePDF" -wx 100 -wy 100 "C:\in.tif" C:\out.pdf
img2pdf.exe -wtext "ImagePDF" -wtype 1 "C:\in.tif" C:\out.pdf

The first example is to add watermark when converting TIF to PDF.
The second example is to watermark the PDF document and set watermark color when converting BMP to PDF.
The third example is to add PDF watermark and set its location in X and Y offset.
The last example is to watermark on header of the created PDF document.

If you are interested in ImagePDF Image to PDF Converter, please visit the homepage: ImagePDF Image to PDF Converter.

In addition, you are strongly recommended to download ImagePDF Image to PDF Converter to have a try of it.

Related Posts: