Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why can't run without server from here #3

Open
javadevelopment4 opened this issue Jun 20, 2020 · 3 comments
Open

why can't run without server from here #3

javadevelopment4 opened this issue Jun 20, 2020 · 3 comments

Comments

@javadevelopment4
Copy link

1 Create HTML file and put all the libraries in the same folder
2 When i opened in my local browser, the PDF is not displayed in flipbook instead throws an error
3 How to run it locally in a system

<title> </title>

Sample PDF View magazine?

when i clicked the link it throws the following error in the browser, eventhough the PDF exist in the same folder where viewer.html is. I'm not running this in webserver. I want to make it work it locally in my system. I don't need a web-server for local viewing. i have created a standalone HTML file which is created for my local PC use.....

PDF.js v1.0.1040 (build: 997096f)
Message: Unexpected server response (0) while retrieving PDF

How to create a standlone HTML file which opens the PDF as flipbook in my local browser

@mazard
Copy link

mazard commented Sep 2, 2020

The problem is pdf.js, it uses fetch to get the pdf pages and the browsers don't allow it with the file:// protocol.
What some like this pdf to flipbook service does to run it locally is to launch a local web server to view the pdf flipbook.

@MichaelBeever
Copy link

MichaelBeever commented Mar 15, 2021

Hello @erayakartuna,

What a great tool this is. I have got it working on my web server and now trying to integrate into my CMS. I am using Umbraco but cannot figure out why it is not working?

I am using HTTPS, would this make a difference?

Thanks

RESOLVED found a file that was needing referencing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants