Unable to build
meetdilip opened this issue · 3 comments
I downloaded the repo, unzipped it into a folder, added a page1.pdf
. PDF file was made using Libre Office
and as per the repo README.md, replaced the file name in
> to define the src, open pdfjs/viewer.js and change to line 30.
var DEFAULT_URL = "compressed.tracemonkey-pldi-09.pdf";
replaced the file name above to page1.pdf
and then clicked index.html
in the folder.
But it keeps spinning even though the PDF was a single page, single sentence in content. Please tell me how build a Flip Book using this repo and kindly correct me if I am wrong. Thanks.
for security reasons web browsers don't like to display content from other places with different security protocols. That's what's causing this issue for you. If you implement this in an actual website things will be aligned in a way that will make your web browser happy.
for security reasons web browsers don't like to display content from other places with different security protocols. That's what's causing this issue for you. If you implement this in an actual website things will be aligned in a way that will make your web browser happy.
Is it possible to bypass this somehow to be able to watch it offline?
@starinspace
The following 2 articles helped me to run the local HTML file
https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors/CORSRequestNotHttp
https://developer.mozilla.org/en-US/docs/Learn/Common_questions/set_up_a_local_testing_server