pdf-flipbook icon indicating copy to clipboard operation
pdf-flipbook copied to clipboard

Unable to build

Open meetdilip opened this issue 3 years ago • 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.

meetdilip avatar Apr 01 '21 13:04 meetdilip

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.

EwonRael avatar Apr 12 '21 08:04 EwonRael

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 avatar Jul 24 '21 12:07 starinspace

@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

Plinsboorg avatar May 24 '22 19:05 Plinsboorg