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