Skip to content

Invalid pdf structure for a signed file #14269

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
luiseufrasio opened this issue Nov 12, 2021 · 1 comment · Fixed by #14270
Closed

Invalid pdf structure for a signed file #14269

luiseufrasio opened this issue Nov 12, 2021 · 1 comment · Fixed by #14270

Comments

@luiseufrasio
Copy link

luiseufrasio commented Nov 12, 2021

Configuration:

  • Chrome: 95.0.4638.69 - 64 bits
  • Operating system and its version: Windows 10
  • PDF.js version: 2.10.377-dist

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

  • Is a browser extension: No

Steps to reproduce the problem:

  1. run the HELLO WORLD github example passing the attached file: https://github.com/mozilla/pdf.js/blob/master/examples/learning/helloworld.html

  2. The PDF does NOT load & in Dev tools console we have:
    {
    "message": "Invalid PDF structure.",
    "name": "InvalidPDFException"
    }

What is the expected behavior? (add screenshot)
Show the PDF in the browser like this:
Expected
teste_assinado.pdf

What went wrong? (add screenshot)
Error Screen 1
Error Screen 2

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

@Snuffleupagus
Copy link
Collaborator

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

That document is damaged enough that it cannot be opened in Adobe Reader either, i.e. the PDF reference implementation, hence this looks for all intents and purposes like a bug in the PDF document itself (rather than in the PDF.js library).

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