我正在使用 PHP/TCPdf 创建一个 pdf 文件,并希望该文件只能由 Adobe Reader 查看。
我想显示相同或其他消息:
To view the full contents of this document, you need a later version of the PDF viewer. You can upgrade to the latest version of Adobe Reader from www.adobe.com/products/acrobat/readstep2.html
For further support, go to www.adobe.com/support/products/acrreader.html
喜欢这些http://www.kuleuven.be/lucas/Docs/Vacatures/2014_107_ADOCARE.pdf
我可以使用嵌入在 PDF 中的 TCPdf 或 JavaScript 来做到这一点吗?
谢谢。
最佳答案
需要 Adobe Acrobat/Reader 的最常见原因是 Acrobat JavaScript 功能。在这种情况下,最佳实践是将文档设置为显示适用于哑巴 PDF 查看器的版本,说明需要更智能的查看器。然后您有一个文档级脚本,它停用该指示并初始化文档以使用更智能的 PDF 查看器。
换句话说,该方法假设 PDF 查看器是愚蠢的,并为智能 PDF 查看器提供解锁高级功能的方法。
出于其他需要 Acrobat/Reader 的原因,例如正确显示叠印和透明度,可能需要将实际文档嵌入到包装 PDF 中,并让包装仅在满足条件时将其导出。
关于javascript - 如何使用 TCPdf 和 PHP 创建只能由 adobe reader 打开的 pdf 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27478995/