Jonathan Sibony wrote:
> Hello All,
>
> In "encountering problems with Pdf 1.6" i meant that each time I am
> trying to instantiate a PDFDocument using the constructor that gets a
> file name (to be loaded into document) I crash.
> This only happens with files of pdf version 1.6.
>
> Apparently an error is thrown from HasLinearizationDict when trying to
> find out if dictionary contains a key named "Linearized" (second line
> within try):
>
> (This is when when instantiating a PdfDocument, a PdfPardser is built,
> calling its member ParseFile() which calls ReadDocumentStructure() which
> calls in turn to HasLinearizationDict())
I'll also need a sample PDF document that causes the crash. Finally,
please test with `podofopdfinfo' to see whether it can handle the document.
Finally, compile the following test program and run it, then tell me if
it works or not (change "input.pdf" to the path to your PDF, of course):
#include <podofo/podofo.h>
int main()
{
PoDoFo::PdfMemDocument m("input.pdf");
}
(if you're using 0.5.0 not svn trunk, change "PdfMemDocument" to just
"PdfDocument").
--
Craig Ringer
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users