mozilla / pdf.js

PDF Reader in JavaScript
https://mozilla.github.io/pdf.js/
Apache License 2.0
48.35k stars 9.97k forks source link

Native text comment (annotation) is not visible in PDF document #15222

Closed prmahima closed 2 years ago

prmahima commented 2 years ago

Attach (recommended) or Link to PDF file here: Attached in the comment section.

Configuration:

Steps to reproduce the problem:

  1. Open the PDF file in https://mozilla.github.io/pdf.js/web/viewer.html
  2. Native text comment (annotation) is NOT visible.

What is the expected behavior? (add screenshot)

  1. Open the PDF file with Microsoft edge browser (I tried on 103.0.1264.71) Or open the PDF file with Adobe acrobat reader
  2. Native text comment (annotation) is visible in blue colour.

What went wrong? (add screenshot) Native text comment (annotation) is not visible in PDF document with pdf.js viewer where as it can be viewed in other applications.

Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension):

prmahima commented 2 years ago

@Snuffleupagus Our customer is uploading the document immediately. Please give some 10 mins time.

Snuffleupagus commented 2 years ago

Attach (recommended) or Link to PDF file here: Attached in the comment section. [...] Our customer is uploading the document immediately. Please give some 10 mins time.

Once more: Please save everyone's time by actually following the ISSUE_TEMPLATE and directly attach the PDF document to the initial post immediately when opening an issue.

Please keep in mind that this is an open-source bug tracker, frequented by many volunteers, rather than paid tech-support.

prmahima commented 2 years ago

@Snuffleupagus Our customer is ready to upload the document now. Should I open a new ticket for this issue as this ticket is closed now?

calixteman commented 2 years ago

Please add the pdf here and next time just file the bug when you've the pdf.

MargitPaul commented 2 years ago

dc05c650-9cd6-47d7-8790-67852b89cf1e_R0-0_001 (1).pdf

calixteman commented 2 years ago

There is no appearance stream. The freetext annotation is correctly displayed in Acrobat, Edge, Foxit and Okular, but neither in Firefox nor Chrome. So when there are no appearance, we must create a default one from the Contents entry.

Snuffleupagus commented 2 years ago

Duplicate of #6810