Hi,

Another fix is in SVN, hopefully, I got it now.

Regards,
        Dom

Am Mittwoch 05 Mai 2010 schrieb Alvaro Nieto Gil:
> Hi,
> 
>       The sample in the first mail works but still there are some problems 
> with
>  this kind of pdfs. If I write the original pdf to other file, this new pdf
>  is corrupted. The next piece of code proves this;
> 
>  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;
> 
>       doc.Write("stuff.pdf");
> 
>       return 0;
>  }
> 
>       I can't open stuff.pdf, Acrobat says "Invalid or missed root object".
> 
> Regards, Álvaro.
> 
> -----Mensaje original-----
> De: [email protected] [mailto:[email protected]]
> Enviado el: martes, 04 de mayo de 2010 22:27
> Para: [email protected]
> CC: Alvaro Nieto Gil
> Asunto: Re: [Podofo-users] PDF with password
> 
> 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
>  **********************************************************************
> 


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