Skip to content

[Bug]: When saving a PDF with text annotations, the text annotations are not displayed when opening the file in Chrome browser, but they are visible when opening the same file with PDF.js. #19970

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ReturnToTheYouth opened this issue May 23, 2025 · 2 comments

Comments

@ReturnToTheYouth
Copy link

Attach (recommended) or Link to PDF file

Web browser and its version

Google Chrome 136.0.7103.114

Operating system and its version

windows 10

PDF.js version

v5.2.133

Is the bug present in the latest PDF.js version?

Yes

Is a browser extension

No

Steps to reproduce the problem

When switching to text annotation mode and adding text annotations on the first or second page, then clicking the download function, sometimes the text annotations can be displayed when opened on other platforms, but sometimes they cannot be displayed.

What is the expected behavior?

The text annotations should be compatible with and readable by other PDF viewers/platforms.

What went wrong?

  1. use chrome display:
  1. use pdfjs dispaly:

Link to a viewer

No response

Additional context

No response

@Snuffleupagus
Copy link
Collaborator

This issue requires a lot more details in order to be actionable; please provide:

  1. The original PDF document that you're using for testing.
  2. The exact text-strings that you're adding in the new FreeText-annotations.
  3. The saved PDF document, which fails to display in other PDF Viewers.

@ReturnToTheYouth
Copy link
Author

hi,

  1. original PDF:

compressed.tracemonkey-origin.pdf

  1. exact text-strings: 中文测试文字批注
  2. The saved PDF document:

compressed.tracemonkey-pldi-save.pdf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants