How to program a text search and replace in PDF files

后端 未结 8 817
不思量自难忘°
不思量自难忘° 2020-12-13 02:41

How would I be able to programmatically search and replace some text in a large number of PDF files? I would like to remove a URL that has been added to a set of files. I

8条回答
  •  鱼传尺愫
    2020-12-13 03:09

    Finding text in a PDF can be inherently hard because of the graphical nature of the document format -- the letters you are searching for may not be contiguous in the file. That said, CAM::PDF has some search-replace capabilities and heuristics. Give changepagestring.pl a try and see if it works on your PDFs.

提交回复
热议问题