Incorrect placement of hyperlink anchors in certain PDFs

Bug #544743 reported by Robert Schroll
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Poppler
Fix Released
Medium
poppler (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Poppler (and therefore Evince) place the anchors of hyperlinks incorrectly with some PDFs. I've attached a sample PDF which displays the problem. The link is the work "link" in the second sentence, but Evince misplaces the anchor to around the word "[This]". The same problem occurs when attempting to get hyperlink locations with the Poppler library directly. Xpdf and Adobe Acrobat Reader both place the hyperlink correctly. Evince behaves identically on both 8.04 and 9.10 systems.

I've only seen this problem in some PDFs created by LaTeX, so I've also attached the LaTeX file I used to make the test case. The necessary components are:
1) Setting the PDF crop box, with the bottom left corner not being (0, 0).
2) Using landscape mode.
3) Compiling through DVI (that is, latex > dvips > ps2pdf or latex > dvipdf).
This specificity might suggest a bug in LaTeX, but the fact that both Xpdf and Acrobat place the anchor correctly suggests to me that LaTeX is doing something unusual, but legal.

The PDF file created directly with pdflatex, also attached, has the anchor correctly placed by Poppler. Perhaps some PDF wizard can compare the two to find out what's different. (I do note that the two files are cropped differently by Evince. I don't know if that's a clue or not.)

Revision history for this message
Robert Schroll (rschroll) wrote :
Revision history for this message
Robert Schroll (rschroll) wrote :
Revision history for this message
Robert Schroll (rschroll) wrote :

Evince properly places the anchor in the case. It was made from the same source file, but using pdflatex instead of latex > dvips > ps2pdf.

Revision history for this message
In , Pedro Villavicencio (pedro) wrote :

this report has been filed here:

https://bugs.edge.launchpad.net/ubuntu/+source/poppler/+bug/544743

"Poppler (and therefore Evince) place the anchors of hyperlinks incorrectly with some PDFs. I've attached a sample PDF which displays the problem. The link is the work "link" in the second sentence, but Evince misplaces the anchor to around the word "[This]". The same problem occurs when attempting to get hyperlink locations with the Poppler library directly. Xpdf and Adobe Acrobat Reader both place the hyperlink correctly.

I've only seen this problem in some PDFs created by LaTeX, so I've also attached the LaTeX file I used to make the test case. The necessary components are:
1) Setting the PDF crop box, with the bottom left corner not being (0, 0).
2) Using landscape mode.
3) Compiling through DVI (that is, latex > dvips > ps2pdf or latex > dvipdf).
This specificity might suggest a bug in LaTeX, but the fact that both Xpdf and Acrobat place the anchor correctly suggests to me that LaTeX is doing something unusual, but legal.

The PDF file created directly with pdflatex, also attached, has the anchor correctly placed by Poppler. Perhaps some PDF wizard can compare the two to find out what's different. (I do note that the two files are cropped differently by Evince. I don't know if that's a clue or not.)"

pdf:

http://launchpadlibrarian.net/41674730/testcase.pdf

latex:

http://launchpadlibrarian.net/41674769/testcase.tex

test case compiled with pdflatex:

http://launchpadlibrarian.net/41674835/testcase.pdflatex.pdf

Revision history for this message
In , Albert Astals Cid (aacid) wrote :

Works in okular, fails in evince, moving to glib frontend

Revision history for this message
Pedro Villavicencio (pedro) wrote :

Thank you for your bug report. This bug has been reported to the developers of the software. You can track it and make comments at:
 https://bugs.freedesktop.org/show_bug.cgi?id=28588

Changed in poppler (Ubuntu):
importance: Undecided → Low
status: New → Triaged
Revision history for this message
In , Carlos Garcia Campos (carlosgc) wrote :

Fixed in master and poppler-0.14 branch. Thanks for reporting.

Revision history for this message
Pedro Villavicencio (pedro) wrote :

This has been fixed upstream now, thanks for reporting.

Changed in poppler (Ubuntu):
status: Triaged → Fix Committed
Revision history for this message
madbiologist (me-again) wrote :

I've just tested this with Ubuntu 10.10 alpha 2 updated to the latest versions of poppler and Evince. This bug is now fixed.

Uname: Linux 2.6.35-6-generic i686
Packages:
    evince 2.30.3-1ubuntu2
    poppler 0.14.1-0ubuntu1

Changed in poppler (Ubuntu):
status: Fix Committed → Fix Released
Changed in poppler:
importance: Unknown → Medium
status: Unknown → Fix Released
Changed in poppler:
importance: Medium → Unknown
Changed in poppler:
importance: Unknown → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.