3D FlipBook - Hi, Can I use PDF which are not in “src” folder? Because I get 404 error when I insert a PDF URL from another folder,

p***o@cecn.net
2019-08-08
2019-08-08

Hi,

Can I use PDF which are not in “src” folder? Because I get 404 error when I insert a PDF URL from another folder, but the path is correct.

Thanks

Replies

a***r@3dflipbook.net
2019-08-08
2019-08-08

Hi,

Write a link to the page with 404 where you use the plugin.

Best regards,

Ivan.

p***o@cecn.net
2019-08-08
2019-08-08

https://www.manomedical.com/testpdf.html

<p>Don’t focus on the content of the iframe, it’s the default content if 404.</p><p>Regards</p>
a***r@3dflipbook.net
2019-08-08
2019-08-08

The page is broken:


VM193:4 Uncaught ReferenceError: jQuery is not defined
    at <anonymous>:4:113
    at m (VM162 jquery-3.3.1.min.js:2)
    at Re (VM162 jquery-3.3.1.min.js:2)
    at w.fn.init.append (VM162 jquery-3.3.1.min.js:2)
    at w.fn.init.<anonymous> (VM162 jquery-3.3.1.min.js:2)
    at z (VM162 jquery-3.3.1.min.js:2)
    at w.fn.init.html (VM162 jquery-3.3.1.min.js:2)
    at 3dflipbook.min.js:9
    at <anonymous>
p***o@cecn.net
2019-08-08
2019-08-08

Yes, this is why I ask for your support. If I remove the inclusion of 3D Flip Book javascript, the page works…

Any idea?

Best regards

a***r@3dflipbook.net
2019-08-08
2019-08-08

As i can see you use some sort of Ajax page loader. It fails to load some scripts. Did you try to load the plugin from a clean page (for example tried http://3dflipbook.net/files/jq-3d-flip-book.zip)?

p***o@cecn.net
2019-08-08
2019-08-08

Yes and it still doesn’t work. In fact the loader is a css animation which comes from the 404 page. That’s why you see it.

I created another demo without this loader:

https://dev.pandao.eu/testpdf/testpdf.html

<p>Thank you for your help</p>
a***r@3dflipbook.net
2019-08-08
2019-08-08

Ok, look at the demo example http://3dflipbook.net/files/jq-3d-flip-book.zip there is a solution of your issue.

p***o@cecn.net
2019-08-08
2019-08-08

Ok, so I need to use javascript implementation to specify the pdf path and the template path, otherwise, the script will use a default location if I user only html, is that correct?

Thanks

a***r@3dflipbook.net
2019-08-08
2019-08-08

Yes

p***o@cecn.net
2019-08-08
2019-08-08

Hi,

I did like you said but it still doesn’t work: https://www.manomedical.com/testpdf.html

Thanks

Regards

a***r@3dflipbook.net
2019-08-08
2019-08-08

Hi,

i need the page source code and all included scripts to start it on my local debug server to say what is wrong.

Best regards,

Ivan.

p***o@cecn.net
2019-08-08
2019-08-08

Hi,

Thank you for your reply. It’s a HTML page, you can simply copy the source code from your browser and the included scripts are yours.

Thanks

Regards

a***r@3dflipbook.net
2019-08-08
2019-08-08

Hi,

Watch http://3dflipbook.net/files/temp/manomedical.zip

You need add the pdf worker path

Best regards,

Ivan.

p***o@cecn.net
2019-08-08
2019-08-08

Hi,

Thanks, it works now.

I have a last question. When I load PDF with less than 4 pages, I get an error when I turn the page:

Cannot load PDF page: 3
Cannot load PDF page: 4

I can’t define the number of pages per document because they are not static. Any idea?

Thank you

Best regards

p***o@cecn.net
2019-08-08
2019-08-08

Edit: the animation turns a blank page for page 3 and 4.

a***r@3dflipbook.net
2019-08-08
2019-08-08

The plugin require at least 4 pages to create a book, if there are not enough pages it uses the blank pages.

p***o@cecn.net
2019-08-08
2019-08-08

Ok, thank you.

Log In to leave a comment