Hello Francesco,

I've just tested your patch on another password protected PDF file and it also 
works fine.

I hope your patch will be quickly integrated in the trunk.

So, thank you very much for your help in resolving this issue.

Cordialement/Best Regards,
Christophe Blanchard

-----Message d'origine-----
De : Francesco Pretto <cez...@gmail.com>
Envoyé : vendredi 19 octobre 2018 17:33
À : zyx <z...@gmx.us>
Cc : Podofo-users <podofo-users@lists.sourceforge.net>; BLANCHARD Christophe 
<christophe.blanch...@3ds.com>
Objet : Re: [Podofo-users] Password protected document

I just tried the doc.pdf attached to this thread. With the patch I posted today 
(subject: [PATCH] Fix possible incompatibility of PdfAESStream with OpenSSL 
1.1.0g), this password protected pdf loads correctly! I hope this information 
is useful to the poster and to speedup review of my patch.

As a side note: the API design to load a password protected pdf, catching the 
exception and then setting the password, looked to me a bit fragile from code 
maintenance perspective: without knowing it a developer could easily introduce 
regressions.

Cheers,
Francesco

On Tue, 18 Sep 2018 at 07:52, zyx <z...@gmx.us> wrote:
>
> On Mon, 2018-09-17 at 17:07 +0000, BLANCHARD Christophe wrote:
> > Any answer to my request.
>
>         Hi,
> I made only a quick test and for me PoDoFo trunk at revision 1940 says:
>
>    PoDoFo encountered an error. Error: 8 ePdfError_InternalLogic
>         Error Description: An internal error occurred.
>         Callstack:
>         #0 Error Source: .../src/base/PdfParserObject.cpp:403
>                 Information: Unable to parse the stream for object 16 0 obj .
>         #1 Error Source: .../src/base/PdfEncrypt.cpp:411
>                 Information: Error AES-decryption data
>
> Thus it has some problem to decrypt that object stream. Evince can
> open the file with no problem, but I do not know how much it masks the
> issue, if at all.
>
> I tried to delete the part with an update from the end of the doc.pdf
> and without it PoDoFo opens the file successfully. That might be a
> clue.
>         Bye,
>         zyx
>
>
>
> _______________________________________________
> Podofo-users mailing list
> Podofo-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/podofo-users
This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
at 3ds.compliance-priv...@3ds.com<mailto:3ds.compliance-priv...@3ds.com>


For other languages, go to https://www.3ds.com/terms/email-disclaimer

_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to