[Okular-devel] Possible bug with annotations?

Albert Astals Cid aacid at kde.org
Wed Dec 18 20:41:02 UTC 2013


El Dimecres, 18 de desembre de 2013, a les 20:46:02, Fabio D'Urso va escriure:
> On Monday, December 16, 2013 10:19:08 PM Albert Astals Cid wrote:
> > El Dilluns, 16 de desembre de 2013, a les 17:16:20, Edward Rosten va
> 
> escriure:
> > > Hi All,
> > 
> > Hi
> > 
> > > I'm having a problem with annotations and I'm not sure if it's a bug.
> > > 
> > > I've attached 3 files. The original is hello.pdf, a very plain PDF
> > > made with PDFlatex.
> > > 
> > > The next file hello-okular.pdf has been annotated with okular. The
> > > problem with this file is that annotations don't appear in all
> > > readers. They don't appear in xpdf and (worse) don't appear in the PDF
> > > reader built into gmail, or the one built into Firefox. They do appear
> > > in evince, okular and Acrobat Reader.
> > > 
> > > For the final file, I loaded hello-okular.pdf into Acrobat Reader and
> > > saved as hello-okular-adobereader.pdf without making any explicit
> > > modifications. Now the annotations appear in all readers.
> > > 
> > > It appears that the annotations only semi-work in other PDF readers at
> > > the moment. I also have a vague memory which I can't verify that
> > > okular annotations have previously been readable in xpdf (and
> > > presumably the others, though I don't remember).
> > > 
> > > Is this a bug?
> > 
> > Looks like it to me. What could be otherwise?
> 
> Sounds like xpdf, gmail and Firefox don't know how to handle annotations
> without an appearance stream (Poppler -the library we use to handle PDFs-
> doesn't store the appearance stream within the PDF file, whereas Acrobat
> does). Basically we're saying "you have to draw a circle annotation" but
> we're not telling how (ie "draw a curve using these control points").
> 
> If they used to work, then I'm wrong and it is a bug.
> 
> 
> According to the specs the appearance stream is optional, therefore I'm
> tempted to say this is not our/Poppler's bug. OTOH, given that so many
> readers show this issue, we may want to change Poppler's behavior.
> 
> There is a reason why I haven't done this yet: we would need to embed a font
> in case of text notes, but I don't know enough about fonts to do that and I
> guess there are also licensing issues to keep in mind.
> 
> Albert, what do you think?

*If* our file is correct, someone should file bugs for the other projects, 
gmail and firefox are still very barebones stuff so they may have not realized 
they are doing it wrong.

Cheers,
  Albert

> 
> Fabio
> 
> > Cheers,
> > 
> >   Albert
> >   
> > > Regards
> > > 
> > > -Ed
> > 
> > _______________________________________________
> > Okular-devel mailing list
> > Okular-devel at kde.org
> > https://mail.kde.org/mailman/listinfo/okular-devel



More information about the Okular-devel mailing list