How to change font size in PDF by command line in batch?

   There are some situations where you need to change font size in PDF file by command line in batch or together with applications like C/C++, Delphi, ASP, PHP, C#, .NET, etc. If you ever encounter, maybe you can have a free trial of software VeryPDF PDF Text Replacer Command Line. This software allows you to replace all found text with given text or images for all selected PDF files in batches through command line. For further information, please read software website or following article.

Step 1. Download PDF Text Replacer Command Line

  • This software can run under all the Windows system like Windows 2000 / XP / Server 2003 / Vista / Server 2008 / 7 of both 32-bit and 64-bit.
  • All the VeryPDF software are free downloading and they are absolutely clear, so you can rest assured to use them.
  • When downloading finishes, there will be zip file. Extract it to folder then you can find executable file, help documents.

Step 2.  Change font size in PDF by command line in batch

  • When running conversion, please obey rules of this software as it is a little complicated.
  • Here is the usage:     pdftr.exe [options] <Input-file> <Output-file>
  • When you need to change font size in PDF by command line, please refer to the following command line template.
    pdftr.exe -searchandoverlaytext "A Quantity Surveying graduate with experience of work within construction industry=>A Quantity Surveying graduate with experience of work within construction industry, with excellent surveying skills specifically in the areas of bill pre" -overlaytextfontname "Verdana" -overlaytextfontsize 80%% -overlaytextcolor FF0000 -overlaybgcolor 00FF00 textforanother.pdf te1234578.pdf
    When you use this software, please input the full path of executable file first, then input parameter  -searchandoverlaytext which will search text you need to change font size. The content of searched text either could be a word or a long paragraph. Please input source text and output text same as you just need to change font size not the content. And please connect these old and new text by symbol   => then input parameter -overlaytextfontsize 80%% , which allows you to change font size by percent.  Last, please input the full path of input PDF and output PDF file.
    Two more examples:
  • pdftr.exe -searchandoverlaytext "PDFcamp Printer=>VeryPDF Printer" -overlaytextfontsize 8 D:\in.pdf D:\out.pdf
    pdftr.exe -searchandoverlaytext "PDFcamp Printer=>VeryPDF Printer" -overlaytextfontsize 80% D:\in.pdf D:\out.pd
    Now let us check related parameter.
    -searchandoverlaytext <string>: search and overlay text to PDF pages
    -overlaytextfontname <string> : set overlay text fontname, default is 'Arial'
    -overlaytextfontsize <string> : set overlay text font size, default is 0 for auto
    -overlaytextcolor <string>    : set overlay text color, in Hex, default is 000000
    -overlaybgcolor <string>      : set overlay text background color, in Hex, default is FFFFFF

Now let us check the changing font size effect from the following snapshot. During the using, if you have any question, please contact us as soon as possible.

change font size by command line

VN:F [1.9.20_1166]
Rating: 2.0/10 (1 vote cast)
VN:F [1.9.20_1166]
Rating: -1 (from 1 vote)
How to change font size in PDF by command line in batch?, 2.0 out of 10 based on 1 rating

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!