[poppler] Annotations with qt
jaydp17 at gmail.com
Mon Dec 31 10:48:58 PST 2012
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.
On Mon, Dec 31, 2012 at 2:51 AM, Fabio D'Urso <fabiodurso at hotmail.it> 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 <jaydp17 at gmail.com>
> > > 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
> It doesn't happen in Okular because it always saves to a temporary file
> then overwrites the original one.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the poppler