Bug 28588 - Incorrect placement of hyperlink anchors in certain PDFs
Summary: Incorrect placement of hyperlink anchors in certain PDFs
Status: RESOLVED FIXED
Alias: None
Product: poppler
Classification: Unclassified
Component: glib frontend (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-17 11:52 UTC by Pedro Villavicencio
Modified: 2010-06-19 01:40 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Pedro Villavicencio 2010-06-17 11:52:53 UTC
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
Comment 1 Albert Astals Cid 2010-06-17 13:44:19 UTC
Works in okular, fails in evince, moving to glib frontend
Comment 2 Carlos Garcia Campos 2010-06-19 01:40:51 UTC
Fixed in master and poppler-0.14 branch. Thanks for reporting.


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.