Bug 34762

Summary: annotation cannot be opened
Product: poppler Reporter: Felix Möller <felix>
Component: generalAssignee: poppler-bugs <poppler-bugs>
Status: RESOLVED MOVED QA Contact:
Severity: normal    
Priority: medium CC: gpoo+bfdo, oliver.sander
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: Example file showing the problem

Description Felix Möller 2011-02-26 05:23:35 UTC
I originally reported this at https://bugzilla.gnome.org/show_bug.cgi?id=643029

The relevant file is at https://bugzilla.gnome.org/attachment.cgi?id=181664.

Carlos already analyzed the following:
That annotation has a 0 size rectangle:

/Rect [ 55.0306 782.177 55.0306 782.177 ]

I see the annotation icon, but can't open the popup window, maybe we should
always force note annotations to have the same size than the icon. In any case
it's not an evince issue, but poppler, could you please forward this bug report
to freedesktop.org bugzilla?

Thanks for reporting.

I think it might make sense to use the icon size in case of zero size ...
Comment 1 oliver.sander 2015-05-28 07:05:32 UTC
Created attachment 116108 [details]
Example file showing the problem
Comment 2 oliver.sander 2015-05-28 07:05:48 UTC
Strange.  I cannot reproduce the problem with the given test file and today's git master of poppler & okular on a Debian Jessie machine.

However, I can reproduce the problem using a pdf file I created myself, using LaTeX and the 'fixme' package (attached).

It's clearly the same issue, because I can fix my file by manually editing the /Rect entry in the file.

AcroRead on Windows 8 shows my file just fine.
Comment 3 philipp.reinkemeier 2015-06-22 08:10:18 UTC
Just a comment. I do not think fixing this belongs in poppler. Poppler is just responsible for providing an API to access PDF documents and assisting in rendering PDF pages. A PDF having an annotation with a very small or 0-size /Rect entry is perfectly legal and a valid PDF file. So i think the question how to deal with such annotations is the job of the viewer application using the poppler library (okular, evince or something else).

Speaking about applications: Both, the PDF of the original BUG report https://bugzilla.gnome.org/show_bug.cgi?id=643029 and the PDF attach to this BUG report work fine in evince since the following commit: https://git.gnome.org/browse/evince/commit/?id=3710f078b9f3df433489ca3da6f8182e1dc8520c.
So maybe okular could take a similar approach.
Comment 4 GitLab Migration User 2018-08-21 11:15:15 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/poppler/poppler/issues/585.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.