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.

Unable to Load PDF

See original GitHub issue

First of all thank a ton for providing such a wonderful pdf viewer for anularjs. My issue i am not able to view pdf with the below code, but the toolbar is visible.

<pdfjs-viewer src="{{ pdf.src }}" scale="scale" download="false" print="false" open="false"  on-init="onInit()" on-page-load="onPageLoad(page)">
</pdfjs-viewer>

After doing the below code, i am able to view the pdf file but it is not working with boostrap col resize.

<div style="width: 800px; height: 550px;">
<pdfjs-viewer src="{{ pdf.src }}" scale="scale" download="false" print="false" open="false"  on-init="onInit()" on-page-load="onPageLoad(page)">
</pdfjs-viewer>
</div>

Please help me as i need to use this with bootstrap.

image

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
priyasadaiyappancommented, Dec 19, 2018

Hi dear friends, i am unable to load the pdf in Pdf-viewer for angular js… Please Some one to help to load the pdf… Am i struggling at 6 days…if you knows means reply this message to quickly… its urgent… Mam Or Sir… Warning message is coming like ‘PDFJS is not set! Make sure that pdf.js is loaded before angular-pdfjs-viewer.js is loaded.’ otherwise nothing to display the screen in web but already add the what ever js and css plugins are added thanks

1reaction
umeshkacommented, Apr 4, 2017

I have created JsFiddle link https://jsfiddle.net/r88n7h8e/4/ but it is not working.

Read more comments on GitHub >

github_iconTop Results From Across the Web

8 Ways to Fix Failed to Load PDF Document Error
How do I fix a PDF failed to load? · 1. Download the latest Adobe Reader version · 2. Change PDF settings in...
Read more >
How to Fix Error Failed to Load PDF Document in Chrome
How to Fix Error Failed to Load PDF Document Chrome · Fix 1: Update Google Chrome to the Latest Version · Fix 2:...
Read more >
Fix: Error Failed to Load PDF Document in Chrome - Appuals
What is causing the “Failed to load PDF document” error? · Method 1: Update Chrome to latest version · Method 2: Using a...
Read more >
Failed to load PDF document in Chrome - Stack Overflow
Opening Google Chrome (obviously) · In the top right, click More Untitled. · At the bottom, click Show Advanced Settings. · Under Privacy,...
Read more >
Troubleshoot viewing PDF files on the web - Adobe Support
Open Reader or Acrobat. · Choose Help > Check for Updates. · When the Updater dialog box appears, click Download. · After download...
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