Summary: | Stamp annotations are drawn by both poppler and Okular | ||
---|---|---|---|
Product: | [Applications] okular | Reporter: | VJ777 <veejunk1> |
Component: | general | Assignee: | Okular developers <okular-devel> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | aacid, aditsu, cfeck, croftd.arb, fabiodurso, nate, null, putr4.s, simonandric5 |
Priority: | NOR | Keywords: | usability |
Version: | 0.19.60 | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 21.12 with recent-ish Poppler | |
Sentry Crash Report: | |||
Attachments: |
PDF file with markups
Screenshot under 0.16 + Poppler 0.20 Hidden rubber stamp |
Description
VJ777
2011-06-11 03:09:35 UTC
Created attachment 60874 [details]
PDF file with markups
Fabio can you have a look? Almost everything looks right except the "Draft" thing that seems to be painted twice. Created attachment 78107 [details] Screenshot under 0.16 + Poppler 0.20 (In reply to comment #0) > Running Okular 0.10.5 under Gnome (2.30.2) on Ubuntu (10.04). Okular 0.10 is "old" and we have changed how we handle PDF annotations in 0.15 (for best results you also need poppler >= 0.20). I'm attaching a screenshot of how the document looks like now. (In reply to comment #2) > Fabio can you have a look? Almost everything looks right except the "Draft" > thing that seems to be painted twice. Yes, that's because Poppler has no support for drawing that kind of annotations (stamp) and thus Okular assumes that we have to draw it ourselves. But in this document the stamp annotation comes with an appearance stream, therefore Poppler *is* able to draw it. This is the reason why it is painted twice. We could add a method in Poppler to query if the annotation comes with an appearance stream or not, and mark such annotations as ExternallyDrawn. What do you think? (In reply to comment #3) > We could add a method in Poppler to query if the annotation comes with an > appearance stream or not, and mark such annotations as ExternallyDrawn. What > do you think? I'd call it something like canIDrawMyself more than doIHaveAppearanceStream, but yeah, makes total sense *** Bug 232058 has been marked as a duplicate of this bug. *** I'm not sure whether this is exactly the same problem or not, but I have added another test file. It doesn't draw the stamp twice, it draws it once, then puts a ? graphic over the top of it. This is using Okular .20.2 and libpoppler-glib8-0.26.5-1.1.i586 from OpenSuse 13.2. Created attachment 90800 [details]
Hidden rubber stamp
*** Bug 352396 has been marked as a duplicate of this bug. *** Still a problem with Okular 17.11.80 and Poppler 0.61. See also https://bugs.freedesktop.org/show_bug.cgi?id=23108 (Poppler should provide default appearance streams for annotations without). The stamps look fine to me on both the attached PDFs with Okular 21.12.3 and Poppler 22.03.0 (certainly doesn't look like the attached screenshot), so I guess it's fixed now? Awesome! |