[Poppler-bugs] [Bug 7488] New: Widgets are not recognized as links
bugzilla-daemon at annarchy.freedesktop.org
bugzilla-daemon at annarchy.freedesktop.org
Mon Jul 10 15:38:57 PDT 2006
Please do not reply to this email: if you want to comment on the bug, go to
the URL shown below and enter yourcomments there.
https://bugs.freedesktop.org/show_bug.cgi?id=7488
Summary: Widgets are not recognized as links
Product: poppler
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: major
Priority: P2
Component: general
AssignedTo: poppler-bugs at lists.freedesktop.org
ReportedBy: kkowalczyk at gmail.com
Download "How to be creative" PDF from
http://www.changethis.com/6.HowToBeCreative
(http://www.changethis.com/6.HowToBeCreative/download/?screen=0&action=download_manifesto)
Notice that poppler only sees a small subset of links of those that Acrobat
Reader does (e.g. only one on the 1st page while there 10).
The reason is that poppler only recognized links for "Links" PDF annotations
while "Widget" PDF annotation is also a valid link (see PDF reference 1.6, page
581. A simple change below fixes that.
Index: poppler/Link.cc
===================================================================
--- poppler/Link.cc (revision 17)
+++ poppler/Link.cc (working copy)
@@ -861,7 +861,8 @@
if (annots->isArray()) {
for (i = 0; i < annots->arrayGetLength(); ++i) {
if (annots->arrayGet(i, &obj1)->isDict()) {
- if (obj1.dictLookup("Subtype", &obj2)->isName("Link")) {
+ if (obj1.dictLookup("Subtype", &obj2)->isName("Link") ||
+ obj1.dictLookup("Subtype", &obj2)->isName("Widget")) {
link = new Link(obj1.getDict(), baseURI);
if (link->isOk()) {
if (numLinks >= size) {
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the Poppler-bugs
mailing list