如何从PHP中的加密PDF中提取标题? [英] How can I extract the title from an encrypted PDF in PHP?
问题描述
如何在Linux上使用PHP从加密(写保护的,不受密码保护的)PDF文件中提取标题?使用外部库或二进制文件可以。 Zen_PDF没有工作(异常:不支持加密文档修改
)也没有libextract( title =pdf.pdf的文件名
)
How can I extract the title from an encrypted (write protected, not password protected) PDF file using PHP on Linux? Usage of external libraries or binaries are OK. Zen_PDF did not work (Exception: Encrypted document modification is not supported
) nor did libextract (title="filename of pdf.pdf"
)
推荐答案
如果你使用* nix,你试过 XPDF ?
If you're using *nix, have you tried XPDF?
有一篇博客文章这里关于某人如何将其用于他们的客户 - 无论是什么帮助我'不确定。
There is a blog post here about how someone has used it for a customer of their's - whether it will be of any help I'm unsure.
编辑:似乎有一些代码这里可以帮助 - 一个简单的类读取PDF到明文。不确定是否支持解密。
There seems to be some code here that could help - a simple class that reads a PDF into plaintext. Unsure if it supports decryption.
EDIT2: PHP文档中还有一些资源可能会帮助您。 点击。
There are also a number of resources in PHP documentation that may help you. Click.
EDIT3: FPDF 和 FPDI 也可能有帮助。可能是一些研究后你最好的选择。
FPDF and FPDI may also help. Probably your best bet after some research.
这篇关于如何从PHP中的加密PDF中提取标题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!