2

I am trying to view/open a PDF file with usage of a local HTML file and ViewerJS
(without Webserver, i just open the HTML-File with a Browser).

In short, it doesn't work. PDF is not displayed (Error: File not found)

This is my directory structure:
enter image description here

This is content of folder ViewerJS:
enter image description here

This is my local HTML-File (PDFViewer.html), which i try to open in a Browser:

<html>
  <head>
  </head>
  <body>
    <iframe src = "/ViewerJS/#../sample.pdf"></iframe>
    <iframe src = "/ViewerJS/#./sample.pdf"></iframe>
    <iframe src = "/ViewerJS/#/sample.pdf"></iframe>
    <iframe src = "/ViewerJS/#sample.pdf"></iframe>

    <iframe src = "ViewerJS/#../sample.pdf"></iframe>
    <iframe src = "ViewerJS/#./sample.pdf"></iframe>
    <iframe src = "ViewerJS/#/sample.pdf"></iframe>
    <iframe src = "ViewerJS/#sample.pdf"></iframe>
  </body>
</html>

What i am doing wrong?
What i am missing?

Ben
  • 3,378
  • 30
  • 46

0 Answers0