Hi,

This was indeed a bug in the source code. I commited a fix to SVN, could you 
please check if this resolves your problem?

Best regards,
        Dom

Am Dienstag 04 Mai 2010 schrieb Alvaro Nieto:
> Hi,
> 
>       I'm trying to fill password's protected form pdf. I use PdfMemDocument 
> in
>  this way;
> 
> 
> int main(int argc, char *argv[])
> {
>       PdfMemDocument doc;
> 
>       try {
>               doc.Load(argv[1]);
>       }
>       catch (const PdfError &e) {
>               if ( e.GetError() == ePdfError_InvalidPassword )
>                       doc.SetPassword(argv[2]);
>       }
> 
>       cout << "Number of pages: " << doc.GetPageCount() << endl;
> 
>       return 0;
> }
> 
> 
>       the problem appears in doc.GetPageCount(), I get coredump because
>  m_pPagesTree class attribute is NULL.
> 
>       I've tried with 0.8.0 and trunk versions and both fails. What's wrong?
> 
> Regards.
> 
> ---------------------------------------------------------------------------
> --- _______________________________________________
> Podofo-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/podofo-users
> 


-- 
**********************************************************************
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