Aleš Borovka
Aleš Borovka

Reputation: 1

creating unprotected pdfs using mPDF

I use mPDF to create pdfs. Now I need to create pdf files unprotected. With SetProtection () I have everything enabled but the pdf is still SECURED. Can somewhere set up to make the pdf file completely unprotected?

Thank you for your help

Upvotes: 0

Views: 122

Answers (2)

user12904610
user12904610

Reputation:

try it to after wirteHTML(); and before output();

$mpdf->SetProtection(array(), '123456', '123456');

Upvotes: 0

Jan Slabon
Jan Slabon

Reputation: 5058

Simply do NOT call SetProtection() and you're done.

Upvotes: 2

Related Questions