[英]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. 我可能在做梦,但我希望有人可能知道解决方案。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.