Bug 512026 - Add adjustable height/width control to highlighter annotation tool
Summary: Add adjustable height/width control to highlighter annotation tool
Status: REPORTED
Alias: None
Product: okular
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Other
: NOR wishlist
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-11-13 10:45 UTC by bimri
Modified: 2025-11-13 10:45 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bimri 2025-11-13 10:45:12 UTC
FEATURE REQUEST: Adjustable Highlighter Height/Width

==SUMMARY==
The Okular PDF highlighter tool currently lacks adjustable height/thickness controls. The highlight stroke always matches the text height, making precision highlighting difficult—especially for complex layouts, scanned PDFs, or multi-column documents.

==CURRENT BEHAVIOR==
- The highlighter annotation tool only supports color and opacity adjustment
- Highlight height is automatically computed from text metrics
- No UI control exists for stroke width/height customization
- Users frequently report difficulty in highlighting specific text without capturing unwanted content

==DESIRED BEHAVIOR==
- Add configurable width/height property to HighlightAnnotation class
- Expose stroke width control in Properties dialog (right-click menu)
- Add preset width options: 25%, 50%, 75%, 100%, 125%, 150%
- Persist user's last-used width preference in settings

==AFFECTED FILES (Implementation path)==
core/annotations.h - Add width property
core/annotations.cpp - Update rendering logic
part/annotationpropertiesdialog.cpp - Add UI control
part/annotationtools.cpp - Add toolbar widget

==RELATED ISSUES==
- Users report multi-line highlighting when trying to highlight single lines
- Inability to highlight partial content in complex layouts
- Difficulty in scanned PDFs with imperfect OCR