#1 Re: PDF Engine » Create protected PDF » 2019-12-20 11:15:24

There is one further issue when using the Encryption:

As soon as I create a protected PDF with

lPdf := TPdfDocumentGDI.Create(false, 0 , false, TPDFEncryption.New(elRC4_128, '', 'password', PDF_PERMISSION_NOMODIF));

the data entered in the document´s TPDFInfo like

lPDF.Info.Author := 'Auto Generated Document';
lPDF.Info.Creator := 'XYZ GmbH';

can no longer be displayed properly in Adobe Acrobat or any other PDF reader.

Did anyone successfully use TPDFEncryption without this issues?

#2 PDF Engine » Create protected PDF » 2019-12-20 10:48:44

berndl666
Replies: 2

Hi,

I am trying to generate a password protected PDF that cannot be modified w/o password like so:

lPdf := TPdfDocumentGDI.Create(false, 0 , false, TPDFEncryption.New(elRC4_128, '', 'password', PDF_PERMISSION_NOMODIF));

When I open the PDF in LibreOffice Draw I am prompted for the password, but may click Cancel or enter a blank password and the PDF is still opened and can be modified.
What am I doing wrong?

Thanks!

Board footer

Powered by FluxBB