Bug 488312 - Text Highlighting: Enable editing of coordinates of the bounding box
Summary: Text Highlighting: Enable editing of coordinates of the bounding box
Status: REPORTED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 23.08.5
Platform: Microsoft Windows Microsoft Windows
: NOR wishlist
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-10 17:04 UTC by Leonard Mada
Modified: 2024-06-12 15:29 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Leonard Mada 2024-06-10 17:04:27 UTC
SUMMARY
The size of the bounding box when highlighting text inside a pdf-document is sometimes wrong.

The top and bottom boundaries are most-commonly affected. The left/right boundaries are sometimes affected as well (severly affected).

SOLUTION
Enable the editing of the coordinates of the bounding box.


STEPS TO REPRODUCE
1. Open certain pdfs (I can provide an example)
2. Highlight certain text-sections

OBSERVED RESULT
Case 1: Bounding box extends way beyond the last word (covering even part of the next word).
Case 2: Bounding box extends well beyond the bottom of the words (at least 2x as high as the actual words).


EXPECTED RESULT
Solution 1: compute more robustly the bounding box (but problems may still appear).
Solution 2: allow users to change manually the coordinates of the bounding box, e.g. in the properties window.


SOFTWARE/OS VERSIONS
Windows: 10

ADDITIONAL INFORMATION
Can provide example pdfs.

Solution 2 would allow to manually correct the bounding box. The coordinates could be displayed in the properties window (only in the case of a simple rectangular area). More complex areas could be covered in future issues.