Question:I have on each page of my PDF document a line with this font REPLACE Which I'd like to find and replace with another font. Does anyone know how to do this with some command line application? Is there a solution on VeryPDF?
Answer: When you need to find and VeryPDF PDF Text Replacer Command Line, by which you can finish task of finding and replacing easily. It can also replace all found text with given text or images for all selected PDF files in batches. A user can replace more than one text string with more than one different text string or images for more than one different PDF files.Please check more information of this software on homepage, in the following part, I will show you how to use this software.in an existing PDF by command line application, maybe you can have a free trial of this software:
Step 1. Free download PDF Text Replacer Command Line
- This is command line version software, when downloading finishes, there will be a zip file. You need to extract it to some folder then you can call it normally.
- When you use this software, please read its readme.txt file first and then run the replacement.
Step 2. Find and Replace text by command line application.
- Here is the usage for your reference: pdftr.exe [options] <Input-file> <Output-file
- When you need to find and in PDF, please refer to the following command line templates:
- Now let us check the replace effect from the following snapshot.
pdftr.exe -searchandoverlaytext "My Name=>Your Name" D:\in.pdf D:\out.pdf
By this command line, we can find and replace text by another text.
pdftr.exe -searchandoverlaytext "My Name=><IMAGE>D:\temp\myname.png*20*20" D:\in.pdf D:\out.pdf
By this command line, we can find and replace text by image file and specify its width and height.
-searchtext <string> : search text in PDF pages and show result to console
-uncompress : uncompress the PDF file
-contentreplace <string> : replace text in page content objects directly
-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
-oldtext <string> : specify text to replace
-newtext <string> : specify text to replace with
In the above snapshot, we find and replace text of VeryPDF Printer Pro to text PDFcamp Printer Pro. By this command line application, we can find and replace text in PDF easily. During the using, if you have any question, please contact us as soon as possible.