Forum


Replies: 3   Views: 213
Setting pdf document security settings
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by admin  · 31-05-2024 - 11:52

Hello,

The conversion plugin doesn't include options to change those security settings when generating a PDF.

Premium licenses include a CryptoAPI module to encrypt and protect DOCX, PDF, XLSX and PPTX files. For example, you can use protectPDF (https://www.phpdocx.com/api-documentation/cryptophpdocx/protect-pdf-document-with-PHP) to handle PDF security settings:

$pdf->protectPDF($source, $target, array('permissionsBlocked' => array('print', 'modify', 'copy', 'annot-forms', 'fill-forms', 'extract', 'assemble', 'print-high')));

Regards.