简体   繁体   English

您可以使用PHP将PDF相对链接转换为超链接吗

[英]Can you convert PDF relative links to hyperlinks with PHP

We have received thousands of PDFs to be hosted on our servers, and they all have links to other PDFs within the folder. 我们已经收到成千上万个要托管在我们服务器上的PDF,并且它们都具有指向该文件夹中其他PDF的链接。 I've googled the problem, and generally find only that it's a common problem, or PDF libraries that don't mention anything like this. 我已经搜索了这个问题,通常只发现这是一个普遍的问题,或者没有提到类似问题的PDF库。

Since we have to parse the text in the PDFs anyways, I'm wondering if anyone know how to identify a link within the PDF being processed by the PHP, change it to an HTTP link, then save it as a new PDF file. 由于无论如何我们都必须解析PDF中的文本,我想知道是否有人知道如何识别PHP正在处理的PDF中的链接,将其更改为HTTP链接,然后将其另存为新的PDF文件。 I'm probably dreaming, but am hoping someone might know of a solution. 我可能在做梦,但我希望有人可能知道解决方案。

TCPDF is Good class for create pdf of html and text files and more... TCPDF是用于创建html和文本文件pdf等的好类。
with template and full documention 带有模板和完整文档
This question is posible in it 这个问题是可能的

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

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