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.

PDF from external link is not working

See original GitHub issue
Bug Report or Feature Request (mark with an x)
- [ ] Regression (a behavior that used to work and stopped working in a new release)
- [x] Bug report -> please search issues before submitting
- [ ] Feature request
- [ ] Documentation issue or request

PDF is not loaded when PDF src url is other than - https://vadimdez.github.io/ng2-pdf-viewer/assets/pdf-test.pdf Any external url link with http or https won’t work.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
VadimDezcommented, Oct 13, 2020

It will work if you provide an external PDF link! See if you get CORS error from the source of the file.

1reaction
faizaldongcommented, Feb 16, 2021

for someone still struggling with this issue even after enable CORS origin in your server, my lead dev suggested to add origin parameter in url with value localhost like below

var url = "https://xxxx.xxx.xxxxx"; url = url + '?origin=localhost';

refer here: https://stackoverflow.com/a/64693106

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why are Hyperlinks not Working in PDF? Fix it!
Do you want to know why the hyperlinks did not work in PDF? This article explains the reasons and also provides you with...
Read more >
Troubleshoot viewing PDF files on the web - Adobe Support
Follow these steps to solve the common issues around viewing PDF files from a website.
Read more >
PDF Links Not Working? Here's How To Fix It - TechNewsToday
How to Fix PDF Links Not Working? · Insert the Correct URL · Enable the Anchor Links · Set Default PDF Viewer ·...
Read more >
4 ways to hyperlink a PDF - External links - Flipsnack Blog
No problem. Upload the PDF in Flipsnack, go to the Customize tab, and check the Auto-detect links feature that you can find in...
Read more >
Externally Shared PDFs Don't Fully Load with Link
I have a PDF report in a SharePoint Online document library, ... file to which the link links and click the Name, they...
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