question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Many PDF files fail to display properly

See original GitHub issue

Here is an example:

https://www.opm.gov/healthcare-insurance/healthcare/plan-information/plan-codes/2018/brochures/73-828.pdf

In the above and other PDFs, no text displays, though images do display.

Below are some of the errors from the browser console:

pdf_l10n.js:1 no resource to load, early way out

pdf_l10n.js:1 #of_pages is undefined.
h @ pdf_l10n.js:1
get @ pdf_l10n.js:1
_updateUIState @ pdf_viewer.js:5
_localized @ pdf_viewer.js:5
Promise resolved (async)
_bindListeners @ pdf_viewer.js:5
e @ pdf_viewer.js:5
(anonymous) @ pdf_viewer.js:1
_initializeViewerComponents @ pdf_viewer.js:1
(anonymous) @ pdf_viewer.js:1
Promise resolved (async)
initialize @ pdf_viewer.js:1
run @ pdf_viewer.js:1
r @ pdf_viewer.js:5

pdf.worker.js:13 The provided value 'moz-chunked-arraybuffer' is not a valid enum value of type XMLHttpRequestResponseType.
(anonymous) @ pdf.worker.js:13
(anonymous) @ pdf.worker.js:13
t @ pdf.worker.js:1
t @ pdf.worker.js:19
t @ pdf.worker.js:1
Object.defineProperty.value @ pdf.worker.js:1
(anonymous) @ pdf.worker.js:1
(anonymous) @ pdf.worker.js:1
(anonymous) @ pdf.worker.js:1

pdf_l10n.js:1 #thumb_page_title is undefined.
h @ pdf_l10n.js:1
get @ pdf_l10n.js:1
t @ pdf_viewer.js:4
(anonymous) @ pdf_viewer.js:4
Promise resolved (async)
setDocument @ pdf_viewer.js:4
load @ pdf_viewer.js:2
o.promise.then.t @ pdf_viewer.js:2
Promise resolved (async)
open @ pdf_viewer.js:2
ce @ pdf_viewer.js:2
(anonymous) @ pdf_viewer.js:1
Promise resolved (async)
a @ pdf_viewer.js:1
Promise resolved (async)
run @ pdf_viewer.js:1
r @ pdf_viewer.js:5

pdf_viewer.js:2 PDF 3df4bd9e5eb66f40f8e142f79c8d720e [1.7 PDFlib 8.0.1p3 (.NET/Win64) / -] (PDF.js: 1.8.355)
pdf.js:1 Warning: Error during font loading: Maximum call stack size exceeded
pdf.js:1 Warning: Error during font loading: Maximum call stack size exceeded

pdf_l10n.js:1 #toggle_sidebar_notification is undefined.
h @ pdf_l10n.js:1
get @ pdf_l10n.js:1
value @ pdf_viewer.js:4
(anonymous) @ pdf_viewer.js:4
(anonymous) @ pdf_viewer.js:1
dispatch @ pdf_viewer.js:1
value @ pdf_viewer.js:3
value @ pdf_viewer.js:3
(anonymous) @ pdf_viewer.js:2
Promise resolved (async)
(anonymous) @ pdf_viewer.js:2
Promise resolved (async)
load @ pdf_viewer.js:2
o.promise.then.t @ pdf_viewer.js:2
Promise resolved (async)
open @ pdf_viewer.js:2
ce @ pdf_viewer.js:2
(anonymous) @ pdf_viewer.js:1
Promise resolved (async)
a @ pdf_viewer.js:1
Promise resolved (async)
run @ pdf_viewer.js:1
r @ pdf_viewer.js:5

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
januzcommented, Sep 4, 2019

I’m experiencing the same issues on Vivaldi. Is there any workaround?

1reaction
purgat0ricommented, Jul 4, 2019

In Vivaldi, PDFs either: crash the browser, or don’t show up at all (this tends to be the outcome when turning off Surfingkey’s own pdf.js with 😒), or don’t show up at all with an additional error: https://imgur.com/a/L2EkKfq

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot viewing PDF files on the web - Adobe Support
In Reader or Acrobat, right-click the document window, and choose Page Display Preferences. From the list at left, select Internet.
Read more >
Fix Display of Linked PDF Files on the Web
Index of Possible Solutions to PDF Display Problems · Disable Protected Mode [using Sandbox restrictions] · Restore Browser Settings · Delete Temporary Internet ......
Read more >
PDF troubleshooter | A list of common issues with PDF files
Common PDF errors or mistakes · The resolution of images is too low (70+%) · Use of incorrect or unwanted color spaces (50+%)...
Read more >
Effective Methods to Fix "Cannot Open PDF" Error
Part 1: Why does "PDF Not Opening" Error Occur? · Unsupported file type: This is the most common reason you cannot open PDF....
Read more >
6 Fixes to Try When Adobe Acrobat Reader Can't Open PDF ...
6 Fixes to Try When Adobe Acrobat Reader Can't Open PDF Files on Windows · Right-click on the Windows Start button and select...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found