简体   繁体   English

PHP函数在在线pdf中搜索文本,替换它并将修改后的pdf保存在服务器上

[英]PHP function to search for text inside online pdf, replace it & save modified pdf on the server

Is there a way in PHP that can open remote PDF file, searching for specific text, replace it with new one & save the modified PDF file on the server? PHP中是否有一种方法可以打开远程PDF文件,搜索特定文本,将其替换为新文本并将修改后的PDF文件保存在服务器上? Thanks谢谢

You can use a combination of tools or just one of them.您可以使用多种工具的组合,也可以仅使用其中的一种。 Depends on how complex the file is and how much noise either of these generates.取决于文件的复杂程度以及其中任何一个产生的噪音。

  1. DomPDF - converts HTML to PDF. DomPDF - 将 HTML 转换为 PDF。
  2. TCPDF - creates PDF files. TCPDF - 创建 PDF 文件。
  3. FPDI - uses already existing PDF files. FPDI - 使用现有的 PDF 文件。

My personal recommendation would be to go for FPDI .我个人的建议是去FPDI

经过多天的研究,没有插件可以从“提取保护”的 PDF 中提取 pdf 数据。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM