Bug 40556 - Bounding boxes of text selection marks are much too large in some cases.
Summary: Bounding boxes of text selection marks are much too large in some cases.
Status: RESOLVED MOVED
Alias: None
Product: poppler
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other Linux (All)
: medium normal
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-01 08:47 UTC by thomas
Modified: 2018-08-21 11:05 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
This is the sample pdf illustrating the bug (56.32 KB, application/pdf)
2011-09-01 08:47 UTC, thomas
Details

Description thomas 2011-09-01 08:47:50 UTC
Created attachment 50817 [details]
This is the sample pdf illustrating the bug

When I select text on the first page of the sample document, everything is ok and looks as expected. But text on the second page has way too large bounding boxes associated for the selection marks when selecting it (tested in evince and okular). In acroread, selection looks as expected.

I created the document with LaTeX by including the second page via \includepdf.
Comment 1 Adrian Johnson 2012-02-24 04:55:10 UTC
The font bounding box and font descent in the PDF file is broken. The value -2960 is wrong. Changing this to 0 makes the selection for that font work correctly.

It looks like acroread will clip the descent to 0 if it thinks the value is too low. Testing with acroread on page 2 the selection does not extend below the baseline. On page 1 the selection has the correct descent.


<<
/FontName /TUSYEC+Iwona-Bold
/StemV 110
/CharSet (/H/I/a/d/e/g/i/m/n/one/t/two)
/FontFile 27 0 R
/Ascent 1099
/Flags 4
/Descent -2960
/ItalicAngle 0
/FontBBox [-226 -2960 1456 1099]
/Type /FontDescriptor
/CapHeight 1099
>>
Comment 2 GitLab Migration User 2018-08-21 11:05:31 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/512.


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.