我建议你可以使用 VeryPDF PDF Text Replacer Command Line 软件批量替换 PDF 页面中的文本,你可以运行 pdftr.exe 轻松替换 PDF 页面中的文本,例如,
pdftr.exe -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 "我的名字=>D:\temp\myname.png*20*20" D:\in.pdf D:\out.pdf
pdftr.exe -pagerange 1-3 -contentreplace "旧文本=>新文本||VeryPDF=>VeryDOC||我的名字=>你的名字" D:\in.pdf D:\out.pdf
pdftr.exe -searchtext "string" C:\in.pdf
pdftr.exe -pagerange 1 -searchtext "string" C:\in.pdf
pdftr.exe -pagerange 1 -searchandoverlaytext "旧文本=>新文本||VeryPDF=>VeryDOC||我的名字=>你的名字" D:\in.pdf D:\out.pdf
pdftr.exe -overlaytextfontname "Arial" -overlaytextcolor FF0000 -overlaybgcolor 00FF00 -searchandoverlaytext "旧文本=>新文本||VeryPDF=>VeryDOC||我的名字=>你的名字" D:\in.pdf D:\ out.pdf
pdftr.exe -opw 123 -upw 456 -contentreplace "旧文本=>新文本||VeryPDF=>VeryDOC||我的名字=>你的名字" 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