Hi,
I'm trying to annotate a pdf file, but everytime I annotate a pdf, it get's
corrupted (Okular says it cannot open it).
Please point out what am I doing wrong,
here's my code...
TextAnnotation *ta = new TextAnnotation(TextAnnotation::InPlace);
ta->setInplaceText("Inplace");
pDoc->page(currentPage)->addAnnotation(ta);
Poppler::PDFConverter *conv = pDoc->pdfConverter();
conv->setOutputFileName(this->currentFileName());
conv->setPDFOptions(conv->pdfOptions() |
Poppler::PDFConverter::WithChanges);
conv->convert();
I execute this & when I reload the document, it fails to load.
*If you want specific error msg:*
"Error: May not be a PDF file (continuing anyway)"
"Error: Couldn't find trailer dictionary"
"Error: Invalid XRef entry"
"Error: Couldn't find trailer dictionary"
"Error: Catalog object is wrong type (null)"
"Error: Couldn't find trailer dictionary"
"Error: Couldn't find trailer dictionary"
"Error: Catalog object is wrong type (null)"
"Error: Couldn't read page catalog"
-Jaydeep
_______________________________________________
poppler mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/poppler