qpdfviewer : "404 not found" the PDF file (absolute or relative URL) #14745
Unanswered
rrigaud
asked this question in
Quasar App Extensions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
For several years, I was trying to use qpdfviewer extension, without success. I was thinking that it was very new, in alpha/beta.
But now, I'm trying again because I really need to display a PDF file inside my electron App.
Whatever I do, I'm not able to load a PDF in my App...
qpdfviewer is correctly installed, and I've tested some very simples cases :
I put a test.pdf in every folder of my code, and try a src with 'test.pdf' or '/test.pdf' or './test.pdf' or '../test.pdf' : Fail.
Failed to load resource : the server responded with a status of 404 (Not found)I put a button to select a PDF File to get the Absolute URL and load it : Fail again.
GET http://localhost:8080/pdfjs/web/viewer.html?file=%2FUsers%2Fraph%2FDownloads%2Ftemp%2FTEMP%2Ftemp%2Ftest.pdf 404 (Not found)And the URL is OK because I can open my PDF file with a 'shell.openItem(pdfURL)'
Could someone help me please ?
Thanks a lot.
Beta Was this translation helpful? Give feedback.
All reactions