Is there any way to make those annotations showup on the page? I see a "setPopup" method but I'm not sure how it works.
Another thing is that I was trying HighlightAnnotation & I don't know how to specify the part of text that has to be highlighted. I guess "setHighlightQuads( QList<Quad> )" might be useful, but I don't get what the members of the Quad class signify. Jaydeep On Mon, Dec 31, 2012 at 2:51 AM, Fabio D'Urso <[email protected]> wrote: > On Sunday, December 30, 2012 07:05:22 PM Jaydeep Solanki wrote: > > here's the source > > https://www.dropbox.com/s/o22eatlg69yj7ql/annot.tar.gz > > > > On Sun, Dec 30, 2012 at 11:15 PM, Jaydeep Solanki <[email protected]> > wrote: > > > 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(); > > Albert's guess was correct, it's because you're overwriting the original > file. > > It doesn't happen in Okular because it always saves to a temporary file > first, > then overwrites the original one. > > Fabio >
_______________________________________________ poppler mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/poppler
