How to customize PDF watermark during converting Office to PDF

It is simple to use VeryDOC DOC to Any Converter to convert Office to PDF and customize PDF watermark with command line on Windows platforms.

For this software – VeryDOC DOC to Any Converter, besides customizing PDF watermark, there are lots of other functions, e.g., editing PDF encryption, PDF information, etc.. For more of these functions, you can read “readme.txt” file after you download trial version of this software in your computer:

Download VeryDOC DOC to Any Converter to convert Office to PDF

Here is relevant measure to use VeryDOC DOC to Any Converter to convert Office file to PDF file and customize PDF watermark flexibly:

1. Open command prompt window

Command prompt window is an elementary environment of commands for Windows systems. And after you open it on screen, commands of yours could be inputted for your own process easily.

2. Convert Office file to PDF file and customize PDF watermark flexibly

To convert Office file to PDF file and customize PDF watermark flexibly, there are not only commands needed, but parameters needed. However, you’d better firstly get familiar with basic steps through following examples:

doc2any.exe –wtext “VeryDOC” -wtype 1 C:\in.doc C:\out.pdf

doc2any.exe –wtext “VeryDOC” -wtype 2 C:\in.docx C:\out.pdf

doc2any.exe –wtext “VeryDOC” -wtype 0 -wa 45 C:\in.doc C:\out.pdf

doc2any.exe –wtext “VeryDOC” –wf “Arial” C:\in.pptx C:\out.pdf

doc2any.exe –wtext “VeryDOC” –wf “Arial” -wh 20 C:\in.ppt C:\out.pdf

doc2any.exe –wtext “VeryDOC” –wf “Arial” -wh 20 -wb -wi -wu -ws C:\in.xlsx C:\out.pdf

doc2any.exe –wtext “VeryDOC” –wf “Arial” -walign 3 -wh 20 –wbox “0,770,612,792” C:\in.doc C:\out.pdf

doc2any.exe –wtext “Watermark %PageNumber% of %PageCount%” C:\in.xls C:\out.pdf

where you need to know the commands:

  • doc2any.exe is to call executive file “doc2any.exe” for conversion
  • ….doc/docx/ppt/pptx/xls/xlsx is to specify input Office file
  • ….pdf is to specify output PDF file with filename and file extension

where you also need to know the parameters:

  • -wtext <string>: Watermark text on printed document with static text or dynamic text
    -wtext does support following dynamic values:
    %PageCount%, %PageNumber%, %PageCountRoman%, %PageCountRoman2%,
    %PageNumberRoman%, %PageNumberRoman2%, %Author%, %Keywords%,
    %Subject%, %Title%, %Filename%, %Date%, %Time%
  • -wtype <int>: type of watermark
    0: normal watermark
    1: watermark on header
    2: watermark on footer
  • -wa <int>: set angle 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
  • -wbox <string>: a rectangle to output formatted text, it is only useful for "-walign" option, eg:
    -wbox "0,0,595,842"
    -wbox "0,0,612,792"
    -wbox "auto"
  • -walign <int>: set text align
    1: left
    2: center
    3: right

And besides parameters mentioned in examples above, watermark color also could be edited through hexadecimal:

-wc <string>: color of watermark, e.g., FF0000: Red color, 00FF00: Green color, 0000FF: Blue color, HexNum: Other colors, etc.

Watermark offset and start, ending page could be set, too:

  • -wx <int>: X offset of watermark
  • -wy <int>: Y offset of watermark
  • -wpagebegin <int>: first page to add the watermark
  • -wpageend <int>: last page to add the watermark
  • -wpageoffset <int>: a value to be added to page number

(Note: relevant examples could be found in “readme.txt” file contained in downloaded folder)

If you understand what i describe above about commands typing and parameter usage, please type commands and parameters to convert Office file to PDF file and customize PDF watermark directly in command prompt window. Then, at last, PDF file with specific watermarks could be generated into targeting folder automatically.

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *


Verify Code   If you cannot see the CheckCode image,please refresh the page again!