How to create a PDF file that can only be opened by Adobe Reader using TCPdf and PHP

I am creating a pdf file using PHP / TCPdf and want the file to be viewable only by Adobe Reader.

I want to show the same message:

To view the complete contents of this document, you will need a later version of the PDF viewer. You can update to the latest version of Adobe Reader from www.adobe.com/products/acrobat/readstep2.html

For additional support, go to www.adobe.com/support/products/acrreader.html

Like these http://www.kuleuven.be/lucas/Docs/Vacatures/2014_107_ADOCARE.pdf

Can I do this with TCPdf or JavaScript embedded in PDF?

Thank.

+3


source to share


1 answer


The most common reason Adobe Acrobat / Reader is required is to be able to work with Acrobat JavaScript. In this case, Best Practice should set the document to display a silent viewer version of PDFs, indicating that a smarter viewer is needed. Then you have a script document level that deactivates this hint and initializes the document to work with a smarter PDF viewer.

In other words, the approach assumes the PDF viewer is dumb and provides the means for a smart PDF viewer to unlock advanced features.



For other reasons that require Acrobat / Reader, for example to display the overlay and transparency correctly, it may be necessary to embed the actual document in the PDF wrapper, and the wrapper will only export it when conditions are met.

+3


source







All Articles