[Bug]: Obsidian-exported PDFs have broken text inside highlighted boxes when viewed on Firefox
Open
@calixteman is already working on this.
Since Jul 21, 2026.
font-type3
regression
upstream
- Dominant language
- JavaScript
- Stars
- 53.9k
- Forks
- 10.7k
- Avg merge
- 18h 38m
- Merged PRs (30d)
- 130
Description
Attach (recommended) or Link to PDF file
Web browser and its version
Firefox 152.0.6 (Build ID: 20260713164047)
Operating system and its version
Windows 11 24H2
PDF.js version
v6.1.200
Is the bug present in the latest PDF.js version?
Yes
Is a browser extension
No
Steps to reproduce the problem
- Open the attached PDF in latest firefox build or the online demo of PDF.js
- See the broken texts inside highlight boxes.
What is the expected behavior?
What went wrong?
Link to a viewer
No response
Additional context
I have been using Obsidian-exported PDFs with such highlight boxes in my classes for more than a year now and have only recently discovered this issue (I use firefox, but my classes use chrome/edge, so I may have been a bit late to pick up on this bug). I think it would be worth testing with the older versions of PDF.js, because I'm sure this used to render properly in firefox before.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.