mozilla / pdf.js

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

PDF Annotation layer is rendered incorrectly #17936

Open oluwagbenga-joloko opened 7 months ago

oluwagbenga-joloko commented 7 months ago

Attach (recommended) or Link to PDF file here: PDF_with_table_content.pdf

Configuration:

Steps to reproduce the problem:

  1. Open the first page of the PDF

What is the expected behavior? (add screenshot)

Screenshot 2024-04-12 at 2 54 16 PM

What went wrong? (add screenshot)

Screenshot 2024-04-12 at 2 53 57 PM

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

nicolo-ribaudo commented 7 months ago

This also happens in Firefox -- there is an empty canvas in the annotation layer that hides the content below.

image

I noticed that MacOS's built-in PDF viewer behaves exactly like PDF.js, which makes me think that it might be a problem with the PDF itself?

marco-c commented 7 months ago

It works in Adobe Reader.