mozilla / pdf.js

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

PDF Text is rendered as transparent #18298

Closed tclain-pillar closed 1 week ago

tclain-pillar commented 1 week ago

Attach (recommended) or Link to PDF file here: example-malformed.pdf

Configuration:

Steps to reproduce the problem:

  1. open the pdf with https://mozilla.github.io/pdf.js/web/viewer.html
  2. most of the text will be transparent

What is the expected behavior? (add screenshot)

image

What went wrong? (add screenshot)

image

The following warnings are displayed in the js console:

Warning: getOperatorList - ignoring XObject: "FormatError: Bad encoding in flate stream".
VM31 jam-console-devtools.js:1 Warning: Knockout groups not supported.
util.js:373 Warning: getTextContent - ignoring XObject: "FormatError: Bad encoding in flate stream".
util.js:373 Warning: getOperatorList - ignoring XObject: "FormatError: Bad encoding in flate stream".
VM31 jam-console-devtools.js:1 Warning: Knockout groups not supported.

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

tclain-pillar commented 1 week ago

Thanks for the prompt fix.

I am not used by the release process of pdf.js,

What's the usual timeline for a fix to drip down in the npm package ?

Thanks again :-)

timvandermeij commented 1 week ago

We usually make a release at the end of every month, unless release blockers are identified before that time.