Hi René,

Using current SVN trunk you can now disable the usage of AES when loading a 
PDF using the following call:

    PdfEncrypt::SetEnabledEncryptionAlgorithms(                 
PdfEncrypt::ePdfEncryptAlgorithm_RC4V1 |
PdfEncrypt::ePdfEncryptAlgorithm_RC4V2 );

When loading an AES encrypted PDF, an exception will be thrown, that the 
encryption is not supported instead of trying to load the PDF and crashing. I 
hope this helps!

Regards,
        Dom


Am Freitag 28 Mai 2010 schrieb René Pfeiffer:
> On May 21, 2010 at 1515 +0200, René Pfeiffer appeared and said:
> > On May 21, 2010 at 1318 +0200, René Pfeiffer appeared and said:
> > > Is there a way to skip the decryption part? The text indexer code runs
> > > unattended, so there is no way to query for passphrases while
> > > indexing/converting the documents.
> >
> > Ok, please disregard my question. I am using the PdfMemDocument
> > constructor to read the document and extract the meta information.
> > I'll try what the constructor has to say to encrypted PDFs. :)
> 
> I tried and both podofopdfinfo and my code that calls GetTitle() of the
> PdfInfo class. In both cases I get a segmentation fault. Apart from this
> being undesirable I am thinking if it's possible to have the library not
> inspect an encrypted PDF document (maybe controlled by an option). My
> indexer code runs unattended, so there's no way of providing
> passphrases.
> 
> Is there a way of detecting PDF encryption without triggering the code
> part that causes the segfault?
> 
> Best wishes,
> René.
> 


-- 
**********************************************************************
Dominik Seichter - [email protected]
KRename  - http://www.krename.net  - Powerful batch renamer for KDE
KBarcode - http://www.kbarcode.net - Barcode and label printing
PoDoFo - http://podofo.sf.net - PDF generation and parsing library
SchafKopf - http://schafkopf.berlios.de - Schafkopf, a card game,  for KDE
Alan - http://alan.sf.net - A Turing Machine in Java
**********************************************************************

Attachment: signature.asc
Description: This is a digitally signed message part.

------------------------------------------------------------------------------

_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to