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.

Cant open pdf file

See original GitHub issue

Cant open file by this link https://www.x.org/archive/X11R7.5/doc/LICENSE.pdf Another files open correctly. PDF readers open this file correctly, what i’m doing wrong? pdfView.fromFile(file) .load(); Where “file” – absolute path to the pdf-file, so file.exists() returns always true.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
1stmetrocommented, Mar 28, 2017

Quickly tested and yes seems to be an issue, download the file locally using curl, etc and open locally then it will work ok.

0reactions
1stmetrocommented, Mar 29, 2017

Simple enough when you save locally double check your paths. System.out.print path etc and use a file manager on device to compare paths incase you have an invalid path, obviously load pdf using another program to check if download code is okay and pdf is valid. The code should download and then open a local copy then delete when not required basically it’s a temp pdf unless you wanna keep it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't open PDF - Adobe Support
Right-click the PDF, choose Open With > Choose default program (or Choose another app in Windows 10). · Choose Adobe Acrobat Reader or...
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 · 1. Close Background Processes and Give Adobe a...
Read more >
Effective Methods to Fix "Cannot Open PDF" Error
Method 1: Disable the protected mode at startup · Method 2: Install the latest version of Adobe Acrobat · Method 3: Checking if...
Read more >
PDF won't open? How to fix PDF files not opening error
PDF won't open ? How to fix PDF files not opening error · 1. Install the latest version of Adobe Acrobat · 2....
Read more >
Can't Open PDF? How To Fix PDF Files Not Opening Error
On Windows: navigate to the PDF file -> right click on it -> select Open with -> click Choose another app -> Choose...
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