Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
maybe some script at PDF upload saying something like :
1) convert PDF pages as JPG images : pdftoppm -f 1 -jpeg "$FILE" "$FILE".jpg. It will create a JPG image for each page.
2) Then resize the JPG to the book size for both 720 and 1080 resolution with Imagemagick tool :
convert -resize '640x720>' "$FILE" "720resized_$FILE"
convert -resize '960x1080>' "$FILE" "1080resized_$FILE"
3) automatically create the pages nodes, 1 chapter fed with the pages in the same order than the PDF, and 1 book fed with the chapter.
I guess that's doable, but since I'm completely n00b with PHP & Drupal for the moment....!
If you are looking for similar functionality there is a awesome website www.issuu.com and they are a plugable pageflip . Its 3rd party of course but very well done. You have to pay to not have ads in the book though :(
I'm using the Apture (www.drupal.org/project/apture) module that makes it happen with a lot of ease.
Just put the link to a PDF file and it will make it open in a flip-book format, without people leaving your site.
As for turning PDF to pageflip, this flip page software can be used. I notice that the page flipping book made by it looks very beautiful like real book.
Comments
Comment #1
l_arbalette commentedsure, it would be nice !
maybe some script at PDF upload saying something like :
1) convert PDF pages as JPG images : pdftoppm -f 1 -jpeg "$FILE" "$FILE".jpg. It will create a JPG image for each page.
2) Then resize the JPG to the book size for both 720 and 1080 resolution with Imagemagick tool :
convert -resize '640x720>' "$FILE" "720resized_$FILE"
convert -resize '960x1080>' "$FILE" "1080resized_$FILE"
3) automatically create the pages nodes, 1 chapter fed with the pages in the same order than the PDF, and 1 book fed with the chapter.
I guess that's doable, but since I'm completely n00b with PHP & Drupal for the moment....!
Comment #2
david3000 commentedsubscribe!
Comment #3
Anonymous (not verified) commentedIm a n00b too!
If you are looking for similar functionality there is a awesome website www.issuu.com and they are a plugable pageflip . Its 3rd party of course but very well done. You have to pay to not have ads in the book though :(
Comment #4
vako commentedI'm using the Apture (www.drupal.org/project/apture) module that makes it happen with a lot of ease.
Just put the link to a PDF file and it will make it open in a flip-book format, without people leaving your site.
Comment #5
56rosa commentedThanks for sharing
Comment #6
readingebook commentedAs for turning PDF to pageflip, this flip page software can be used. I notice that the page flipping book made by it looks very beautiful like real book.