#Creating flipbook from pdf via NodeJS or Frontend JS

1 messages · Page 1 of 1 (latest)

plain anvil
#

hey all,

hope all is well and good 🙂

Wonder if someone could point me to the right direction plz. i need build flip book from a pdf.... i am not sure what the best tech stack to use here.

At first i thought i can use something like pdf2pic npm package, convert each page to an image .. then use CSS and JS to add some fancy animation/transition - BUT the issue here i can not select the text or click on links (content page).

Then i came across pdf.js but this again uses canvas , ideal i want plain html on the page.... the end goal is build something like this online.flippingbook.com/view/309034/6-7/ 🤔

any suggests?

thanks

torn veldt
#

Sounds fun! Can you clarify the use case for this? Are you supposed to parse individual images from a pdf? Are you supposed to flip through the individual pages of the pdf?

wise anchor
#

I can't send links on here.

But if you look at how the Flopboard works it must convert a PDF to SVG+JPEGs.

If you open up the inspect and look and filter by type. You can see there are SVG and JPEG images loaded on the page. The JPEGs have the parts of the PDF that can't be vectorised i.e. the photos, and the text and graphics are SVGs.