PDF Flipbook Maker
Operator: Abdulla Al Fahad. How tools are built and checked
A flipbook is a web page that shows a PDF as a book, two pages at a time, with a page curl when you turn. Hosted services keep the pages on their servers and add their own script to every view; this page instead writes the flipbook as files you own, so it can sit on your own web host or be emailed as a single HTML file.
Key features
- Spreads of two pages with a CSS 3D page turn, switching to a one-page view when the window is narrow or when you press the 1/2 button
- Zoom from 1x to 4x, a thumbnail drawer, a go-to-page box, full screen, swipe and click-to-turn, and the keys Left, Right, Space, Home, End, + - 0, T and F
- Web, mail and phone links and jumps to another page are kept as clickable areas; other link types are dropped
- Page images at 800, 1200, 1600 or 2000 px wide and JPEG quality from 0.40 to 0.95, with a size estimate from three rendered sample pages
- Output as a ZIP (index.html, pages and thumbs folders, optional original PDF) or as one HTML file with the images embedded as base64
What the exported viewer contains
The viewer is a single index.html with its style sheet and script inline. It makes no network requests, loads no fonts and has no analytics; the only links it opens are the ones that were in the PDF, and only http, https, mailto and tel addresses are accepted. The title and every address are escaped before they are written into the page.
The ZIP layout is index.html, pages/page-001.jpg and so on, thumbs/thumb-001.jpg at 160 px wide, and the PDF under its own name when the Download PDF button is on. The JPEGs are stored rather than compressed again. Unzip it before opening index.html: the viewer needs its images next to it, and some file managers preview a ZIP without extracting.
The single-file option writes the same viewer with every image as a data URL, which makes the file about a third larger than the ZIP.
How it works
pdf.js draws each page onto a canvas at the chosen width, capped at 4,000 px on the long side, and encodes it as JPEG. A second small canvas makes the thumbnail. A page that fails to render becomes a blank page of the first page's size, so page numbers do not shift, and the page lists which ones failed.
The size estimate renders the first, middle and last page with your settings and multiplies the average by the page count. The ZIP total is pages times (average page plus average thumbnail), plus the PDF when included, plus about 30 KB. The single-file figure is the same bytes multiplied by 4/3 for base64. A ZIP build over 700 MB is refused because the images are held in memory until the file is written, and a single-file build is refused over 250 MB, because the whole page is assembled as one text string, Chromium-based browsers cap a string at about half a gigabyte and several copies of it exist while the file is built; the estimate is checked again as the pages render.
With the cover on its own, spread 1 is page 1 on the right, then pages 2-3, 4-5 and so on, and a last page that is left over stands alone. Without it the pairs are 1-2, 3-4. The turning leaf carries the page you are leaving on its front and the page it uncovers on its back, and the page underneath is already the new one.
Typical uses
- A print shop turns a 32-page product catalogue into a ZIP and uploads it next to its pricing page, keeping the 40 product links that pointed to its shop.
- A teacher emails a 12-page class newsletter as one HTML file that parents open on a phone, where it shows one page at a time.
- A student club exports its 60-page annual report at 800 px wide to keep the folder under 5 MB for a free host with a size limit.
- A museum volunteer exports a 120-page exhibition guide with links on, so the 'see page 45' references in the PDF jump inside the flipbook.
Building one
- Drop a PDF onto the page.
- Set the title, the page image width, quality and the options for cover, links and the PDF button.
- Check the size estimate, press Build flipbook and try the result in the preview.
- Download the ZIP or HTML file and upload the unzipped folder, or the single file, to your host; link to index.html.
Example
A 24-page brochure, 1200 px, quality 0.80, cover alone, Download PDF on, ZIP output
Suppose the three sample pages average 150 KB each and the thumbnails 6 KB, and the PDF is 1.2 MB.Estimate and result
Estimate: 24 x (150 + 6) KB + 1.2 MB + 30 KB, about 4.9 MB as a ZIP and about 6.5 MB as one HTML file. The export has 13 spreads (page 1 alone, then 2-3 to 22-23, then page 24 alone; without the cover option, 12), and its index.html is about 15 KB for 24 pages.Tips for best results
- Check the estimate at 800 px before choosing 2000 px: most of a flipbook's size is the page images, and 1600 px carries about 1.8 times the pixels of 1200 px.
- Choose the single HTML file when the flipbook has to travel as an attachment; choose the ZIP when it will live on a host, because the browser can then load pages one at a time instead of the whole file.
- Turn off Download PDF when the PDF is large: the original is stored beside the page images and counts toward the total.
Things to check before you rely on it
Text in the flipbook is part of the page picture, so it cannot be selected, searched or read by a screen reader. The Download PDF button is how readers get the real text.
Only the link areas of the PDF are kept. Form fields, video and embedded files are not.
Common errors and how to fix them
- This PDF has 412 pages; the limit is 300
- Extract the pages you want with a split tool first.
- The embedded images passed 250 MB at page 110, more than one HTML file can hold
- Untick One HTML file to get a ZIP, which allows up to 700 MB, or lower the page width or the quality.
- The images passed 700 MB at page 187
- Lower the page width or the quality and build again.
Hosting the flipbook
Any static host serves it: copy the unzipped folder and link to index.html, or embed the page in an iframe with the allowfullscreen attribute so the Full button works. Links from the PDF open in a new tab and send no referrer.
Frequently asked questions
Can I search the text of a flipbook?
No. The pages are images, so the viewer has no text layer. The optional Download PDF button hands readers the original, which is searchable.
Why is my flipbook much bigger than the PDF?
A text PDF stores letters as small outlines, while the flipbook stores each page as a picture. Lowering the width to 800 px or the quality to about 0.6 brings pages of mostly text down sharply.
Do the links in my PDF still work?
Web, mail and phone links and jumps to another page become clickable areas on the page image. Other link kinds, such as one that opens a file, are dropped, and a jump to a page leads only within the flipbook.