Dear Team,
I am trying to replace the text, but it is replacing the exact case, but I need to replace all the matching strings without taking the case sensitive conditions.
Can you please suggest?
Thanks & Regards,
Customer
-----------------------------------------------------
Thanks for your message, you can use our PDF Text Replacer Command Line software to replace text contents in PDF pages,
PDF Text Replacer Command Line does support replace text strings without taking the case sensitive conditions, the latest version of PDF Text Replacer Command Line does support "-casesensitive" parameter, you can use this parameter to compare strings with case insensitive method,
-casesensitive : compare strings with case insensitive method
e.g.,
pdftr.exe -casesensitive -contentreplace "My Name=>Your Name" D:\in.pdf D:\out.pdf
pdftr.exe -casesensitive -searchandoverlaytext "PDFcamp Printer=>VeryPDF Printer" D:\in.pdf D:\out.pdf
Here are command line options which included in pdftr.exe application,
C:\>E:\pdftextreplacer_cmd\pdftr.exe
Web: https://www.verypdf.com
Email: support@verypdf.com
Build date: Mar 13 2014
VeryPDF PDF Text Replacer Command Line v3.0
Batch replace or overlay text with text or image to PDF pages.
Copyright 1996-2014 VeryPDF.com Inc.
===========================================
Support input format:
1. PDF: Adobe Acrobat PDF file format
Support output format:
1. PDF: Adobe Acrobat PDF file format
===========================================
Usage: pdftr.exe [options] <Input-file> <Output-file>
-pagerange <string> : set page range for search keywords, e.g., 1,3-5,7,9-
-opw <string> : owner password (for encrypted files)
-upw <string> : user password (for encrypted files)
-listtext : list text lines in all PDF pages or selected pages
-searchtext <string> : search text in PDF pages and show result to console
-uncompress : uncompress the PDF file
-showinvisibletext : include the invisible text contents which render by render3 mode
-casesensitive : compare strings with case insensitive method
-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
-image <string> : specify image to replace with, support JPEG, PNG and TIFF
-imgwidth <int> : set width for the new image, unit: pixel, default is 0 for auto, -1 for full image width
-imgheight <int> : set height for the new image, unit: pixel, default is 0 for auto, -1 for full image height
-skip : don't overwrite an output file if it already exists
-h : print usage information
-help : print usage information
--help : print usage information
-? : print usage information
-$ <string> : input your license key
Examples:
pdftr.exe -$ XXXXXXXXXXXXXXXX
pdftr.exe -uncompress D:\in.pdf D:\out.pdf
pdftr.exe -$ XXXXXXXXXXXXXXXX -contentreplace "My Name=>Your Name" D:\in.pdf D:\out.pdf
pdftr.exe -contentreplace "My Name=>Your Name" D:\in.pdf D:\out.pdf
pdftr.exe -casesensitive -contentreplace "My Name=>Your Name" D:\in.pdf D:\out.pdf
pdftr.exe -searchandoverlaytext "My Name=>Your Name" D:\in.pdf D:\out.pdf
pdftr.exe -searchandoverlaytext "My Name=><IMAGE>D:\temp\myname.png*20*20" D:\in.pdf D:\out.pdf
pdftr.exe -showinvisibletext -searchandoverlaytext "Jump=>Jump" -overlaybgcolor 09F0F9 -overlaytextcolor 000000 -overlaytextfontsize 80% D:\in.pdf D:\out.pdf
pdftr.exe -pagerange 1-3 -contentreplace "Old Text=>New Text||VeryPDF=>VeryDOC||My Name=>Your Name" D:\in.pdf D:\out.pdf
pdftr.exe -listtext C:\in.pdf
pdftr.exe -searchtext "string" C:\in.pdf
pdftr.exe -pagerange 1 -searchtext "string" C:\in.pdf
pdftr.exe -pagerange 1 -searchandoverlaytext "Old Text=>New Text||VeryPDF=>VeryDOC||My Name=>Your Name" D:\in.pdf D:\out.pdf
pdftr.exe -overlaytextfontname "Arial" -overlaytextcolor FF0000 -overlaybgcolor 00FF00 -searchandoverlaytext "Old Text=>New Text||VeryPDF=>VeryDOC||My Name=>Your Name" D:\in.pdf D:\out.pdf
pdftr.exe -opw 123 -upw 456 -contentreplace "Old Text=>New Text||VeryPDF=>VeryDOC||My Name=>Your Name" D:\in.pdf D:\out.pdf
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.pdf
pdftr.exe -casesensitive -searchandoverlaytext "PDFcamp Printer=>VeryPDF Printer" D:\in.pdf D:\out.pdf
pdftr.exe -oldtext "Old Text" -newtext "New Text" D:\in.pdf D:\out.pdf
pdftr.exe -oldtext "Old Text" -image D:\test.png D:\in.pdf D:\out.pdf
pdftr.exe -oldtext "Old Text" -image D:\test.png -imgwidth 20 -imgheight 50 D:\in.pdf D:\out.pdf
pdftr.exe -oldtext "Old Text" -image D:\test.png -imgwidth -1 -imgheight -1 D:\in.pdf D:\out.pdf
pdftr.exe -oldtext "Old Text" -image D:\test.png -imgwidth 0 -imgheight 0 D:\in.pdf D:\out.pdf
Batch process examples:
for %F in (D:\temp\*.pdf) do pdftr.exe -contentreplace "My Name=>Your Name" "%F" "out_%~nF.pdf"
for %F in (D:\temp\*.pdf) do pdftr.exe -searchandoverlaytext "My Name=>Your Name" "%F" "C:\test\%~nF.pdf"
for %F in (D:\temp\*.pdf) do pdftr.exe -skip "%F" "C:\test\%~nF.pdf"
for /r D:\temp %F in (*.pdf) do pdftr.exe -oldtext "Old Text" -newtext "New Text" "%F" "C:\test\%~nF.pdf"