Bug 501006 - Text markup annotation not properly handled by pdftocairo
Summary: Text markup annotation not properly handled by pdftocairo
Status: RESOLVED NOT A BUG
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (other bugs)
Version First Reported In: 24.12.2
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-03 13:59 UTC by Dominik Kummer
Modified: 2025-03-03 23:48 UTC (History)
1 user (show)

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 Dominik Kummer 2025-03-03 13:59:27 UTC
SUMMARY
I add several annotations to a pdf document. Then I convert the pdf document to svg with cairo. But as soon as a single text highlighting annotation is added, the conversion breaks.

STEPS TO REPRODUCE
1. Choose a single page pdf document with text and add for example a green text highlight annotation.
2. Save the file as test.pdf
3. convert the file to svg with `pdftocairo -origpagesizes -svg 'test.pdf' vector.svg`
4. Confirm the broken usability of vector.svg

OBSERVED RESULT
All annotations (text, polygon, freehand, image, note) are properly handled by pdftocairo, except text highlight break the conversion

EXPECTED RESULT
All basic annotations should work, especially text highlighting.
Comment 1 Albert Astals Cid 2025-03-03 21:51:05 UTC
pdftocairo is not us. File a bug against poppler
Comment 2 Dominik Kummer 2025-03-03 23:48:22 UTC
thanks for clarification and redirection!