Included PDF does not show Annotations
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 56.1k
- Forks
- 1.7k
- Avg merge
- 3d 10h
- Merged PRs (30d)
- 22
Description
Description
When I embed a PDF inside typst, the rendered page does not show text annotations.
I am not sure if this is intended or not, but in my day-to-day life, we have to deal with lots of text annotations and it would be great if typst can render this as well.
MWE
When I use the following typst to include the PDF mwe_annotation.pdf
#image("mwe_annotation.pdf", height: 1fr, fit: "contain", page: 1)
I would expect to see this (mwe_annotation.pdf opened in any PDF viewer)
instead I see this (rendered typst with the code above)
Reproduction URL
https://typst.app/project/rnhPBKvklXNITYTLuLZaMd
Operating system
Linux
Typst version
- I am using the latest version of Typst
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.
Research direction
Start by reading the PDF image inclusion path and checking how the provided MWE PDF is rendered compared with a PDF viewer. The report identifies missing text annotations when including a PDF page; determine whether annotation rendering is intended and what existing tests cover this path. Done means the included page displays the annotations as expected, with the behavior verified by a regression test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100