Skip to content
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

Some PDF documents cannot be viewed correctly #13397

Closed
ColcerP opened this issue May 18, 2021 · 3 comments
Closed

Some PDF documents cannot be viewed correctly #13397

ColcerP opened this issue May 18, 2021 · 3 comments

Comments

@ColcerP
Copy link

ColcerP commented May 18, 2021

Attach (recommended) or Link to PDF file here: https://dgfilesanywhere.blob.core.windows.net/public/issues/0085D801.PDF

Configuration:

  • Web browser and its version: Google Chrome Version 90.0.4430.212 (Official Build) (64-bit); Microsoft Edge
    Version 90.0.818.62 (Official build) (64-bit) [others as well]
  • Operating system and its version: Windows 10 Pro 64-bit (10.0, Build 18363) [not only]
  • PDF.js version: pdfjsVersion = '2.1.266'; pdfjsBuild = '81f5835c'; [does reproduce with the latest version as well]
  • Is a browser extension: No, the pdfjs is integrated in a web application

Steps to reproduce the problem:

  1. Open the PDF provided above with the pdf js viewer and you will see a black rectangle over it.

What is the expected behavior? (add screenshot)
image

What went wrong? (add screenshot)
image

Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension): It is not hosted yet. If required, I can host it somewhere.

Mention: This is not the only file we have that is not displayed correctly. Some of them can be viewed without any issues in Acrobat Reader but not using the pdf js viewer.

@Snuffleupagus
Copy link
Collaborator

Snuffleupagus commented May 18, 2021

WFM, using PDF.js version 2.9.304 (tested using https://github.com/mozilla/pdf.js#online-demo) in both Firefox Nightly 90 and Google Chrome Beta 91.0.4472.57.

PDF.js version: pdfjsVersion = '2.1.266'; pdfjsBuild = '81f5835c'; [does reproduce with the latest version as well]

Please note that only the versions listed at https://mozilla.github.io/pdf.js/getting_started/#download are supported. Furthermore, it's not clear which exact version number "the latest version" refers to above.


It appears that this was fixed by PR #12219, and that patch is included in the currently supported releases found at https://mozilla.github.io/pdf.js/getting_started/#download

@ColcerP
Copy link
Author

ColcerP commented May 18, 2021

I checked it right now and you're right, this one does work from the online demo link https://github.com/mozilla/pdf.js#online-demo. I have another PDF file which doens't work in the demo viewer, unfortunatelly I cannot share the document because it contains sensitive data. I've made some print screens and try to blur the sensitive data for you to check the difference
This is the Adobe reader display:
image
And this is the PDF js viewer display:
image

@Snuffleupagus
Copy link
Collaborator

Snuffleupagus commented May 18, 2021

I have another PDF file which doens't work in the demo viewer, unfortunatelly I cannot share the document because it contains sensitive data. I've made some print screens and try to blur the sensitive data for you to check the difference

Please note that it's simply impossible to do any meaningful debugging/testing with nothing more than a screen-shot, and that we unfortunately cannot help unless the PDF document is provided.

If you're able to find another document which reproduces the problem, or if you can redact the original document such that it can be shared, please then open a new issue for this problem.
(As mentioned in the first paragraph of https://github.com/mozilla/pdf.js/blob/master/.github/CONTRIBUTING.md, there should only be one problem reported per issue.)


Given that the problem reported #13397 (comment) has already been fixed, this issue should be closed.

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

No branches or pull requests

3 participants