mozilla / pdf.js

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

PDF Annotation layer is rendered incorrectly #17936

Open oluwagbenga-joloko opened 2 months ago

oluwagbenga-joloko commented 2 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 2 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 2 months ago

It works in Adobe Reader.