GNOME Bugzilla – Bug 338440
bookmarks that describe a view not displayed correctly
Last modified: 2006-08-06 18:12:47 UTC
Please describe the problem: When choose one of the bookmarks (other than "Full page") from http://www.sfgate.com/traveler/acrobat/maps/1998/sfcity02.pdf the view is wrong. This PDF consists of a single page and the bookmarks represent different points of interest. Steps to reproduce: 1. 2. 3. Actual results: Expected results: Does this happen every time? Other information:
Created attachment 63442 [details] PDF from bug report
Created attachment 63443 [details] screenshot of Acrobat reader screenshot of Acrobat reader showing bookmark "Chinatown / Financial Dist" (looks correct to me)
Created attachment 63444 [details] screenshot of evince screenshot of evince for bookmark "Chinatown / Financial Dist"
Created attachment 63445 [details] screenshot of Acrobat reader screenshot of Acrobat reader for bookmark "City Hall / Civic Ctr"
Created attachment 63446 [details] screenshot of evince screenshot of evince for bookmark "City Hall / Civic Ctr"
Hmm... Yeah, seeing this too, Evince 0.5.1, poppler 0.5.1. XPDF seems to handle this correctly, but KPDF seems to have the same problem... Poppler bug perhaps?
(In reply to comment #6) > Hmm... Yeah, seeing this too, Evince 0.5.1, poppler 0.5.1. taking comment as confirmation and marking this as New
Created attachment 65104 [details] [review] Proposed patch This patch fixes the problem.
I prefer to get correct coordinate system from poppler. As I understand we use top-left origin while poppler uses bottom-left. But we should not convert coordinate system in the view and probably this should be more documented.
Created attachment 70317 [details] [review] New patch Here is an updated patch that converts from PDF style coordinates to X style in the PDF backend
Created attachment 70320 [details] [review] Another patch There is a minor problem in my previous patch. Here is a new one that fixes this problem.
2006-08-06 Carlos Garcia Campos <carlosgc@gnome.org> * pdf/ev-poppler.cc: (ev_link_dest_from_dest), (ev_link_from_action), (build_tree), (pdf_document_links_get_links), (pdf_document_links_find_link_dest): * shell/ev-view.c: (goto_fitr_dest), (goto_fith_dest), (goto_xyz_dest): Convert from PDF style coordinates to X style coordinates in the backend rather than in the view. Fixes bug #338440