I'm using html2fpdf for creating PDF documents. Now once I have created that, I want to make sure that the PDF file is password protected. How can this be done in PHP?
相关问题
- Views base64 encoded blob in HTML with PHP
- Laravel Option Select - Default Issue
- PHP Recursively File Folder Scan Sorted by Modific
- Can php detect if javascript is on or not?
- Using similar_text and strpos together
Download the library I am using from a blog post on the ID Security Suite site:
I was never able to find a direct php solution to this problem. I ended up using pdftk and using
shell_exec()
to call the binary once the pdf file was generated/uploaded.It accepts a syntax like this: