typst / typst/typst

Included PDF does not show Annotations

Open
#7,262 2 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug pdf visualize
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)

Image

instead I see this (rendered typst with the code above)

Image
Reproduction URL

https://typst.app/project/rnhPBKvklXNITYTLuLZaMd

Operating system

Linux

Typst version
  • I am using the latest version of Typst

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.