Browser-based document converter · EPUB to PDF

EPUB to PDF Converter

Lays a DRM-free EPUB out as a text PDF on Letter or A4 paper, chapter after chapter, with page numbers in the footer.

Input

EPUB ebooks (.epub), up to 25MB

Drop your EPUB file here or click to choose

.epub

Files are read and converted on your device. Nothing is uploaded, and the result is yours to download or open in the Word editor.

Result

PDF file, ready to download or edit

Choose a file to see the PDF result here.

EPUB to PDF Converter

Operator: Abdulla Al Fahad. How tools are built and checked

Nothing in an EPUB says where a page ends. The book is a bundle of XHTML chapter files that a reading app reflows to fit whatever screen it is on, which is exactly what makes it awkward to print, to annotate with a stylus or to hand to someone whose only reader is a PDF viewer. The EPUB to PDF Converter walks the chapters in the order the publisher listed them and sets the text on US Letter or A4 pages with one-inch margins, a running page footer and real, selectable text.

What comes out is a clean reading copy rather than a facsimile of the publisher's design. Chapter titles become large headings, paragraphs, lists and tables are set in Helvetica, and links to the web stay blue. The cover and the illustrations are left out, the book's own fonts and CSS are not used, and chapters flow on from one another instead of each starting a fresh page. Those limits are explained below, along with the one case the tool refuses outright: a book whose text is mostly in a script the standard PDF fonts cannot draw.

Key features

  • Converts chapters in spine order with titles from the book's table of contents, as the EPUB to Word converter does, then paginates them.
  • Uses the Word to PDF converter's page design on US Letter or A4, footer included.
  • Produces real text: the PDF can be searched, selected, copied and read aloud, and it carries the book's dc:title as its document title.
  • Warns about ligatures and symbols the standard fonts cannot draw, and stops cleanly when the text is mostly non-Latin.
  • Refuses DRM-protected books and non-EPUB files with a specific message rather than producing an empty PDF.

What the PDF keeps from the EPUB

The reading side is the EPUB to Word converter's, and that page describes it in full: chapters are taken in spine order, a chapter file with no heading of its own is given its table-of-contents label as a Heading 1, text-free files such as the cover are skipped, and a DRM-protected book is refused before any chapter is opened. What this tool adds is the page.

Pages follow the Word to PDF converter's design, documented on that page: 11pt Helvetica body text, 20, 15 and 12.5pt headings, hanging-indent lists, gridded tables, a numbered footer, Letter or A4. Inserted chapter titles are Heading 1, the largest type in the file, and HTML headings deeper than h3, which ebook stylesheets use for sub-sections, are all set as Heading 3. The PDF's title metadata comes from the book's dc:title, so a reader's title bar shows the book's name, while the download keeps the uploaded file's name.

The standard PDF fonts cover Western European Latin text only; the Word to PDF page sets out that rule and the refusal threshold. The fi and fl ligatures that survive in text converted from print files become question marks, each listed in the warning. Soft hyphens and zero-width marks sprinkled through the text for reflow are stripped silently. And a novel in Russian, Greek, Arabic, Hindi or Chinese is refused and pointed to the Word editor, whose Print / PDF button uses the browser's print dialog and your own fonts.

How it works

The .epub is opened as a zip and its chapters are parsed into headings, paragraphs, list items and tables by the same reader the EPUB to Word tool uses; the chapters are concatenated in spine order with table-of-contents labels inserted where a chapter has no heading.

Pagination is then handed to the engine that lays out Word to PDF conversions, which checks the text against the Helvetica character set, wraps and paginates the block list and draws the footer last. Nothing in the EPUB's own CSS or page-break hints is consulted, which is why the chapter flow is continuous.

Common use cases

  • Printing a DRM-free novel from Project Gutenberg or Standard Ebooks as a stack of A4 pages to read away from screens.
  • A lecturer distributes a chapter of an open-licence textbook to students whose tablets only open PDFs.
  • An author proofreads their own ebook on paper, where the page numbers in the footer make it easy to note corrections.
  • Someone who reads with a stylus on an e-ink tablet converts a self-published EPUB so they can annotate it page by page.

How to use this tool

  1. Drop the .epub on the area marked Drop your EPUB file here or click to choose. The book is read and laid out straight away.
  2. Compare the chapter chip with the book's contents page, and pick the paper from the Page size menu.
  3. Look at the warning box for skipped images and ligatures turned into question marks, and skim the preview to check that each chapter title appears once.
  4. Choose Download .pdf, or Edit in Word editor to remove front matter or fix a heading, then use the editor's Print / PDF button.

Example

Inside the .epub (simplified)

META-INF/container.xml  -> OEBPS/content.opf
OEBPS/content.opf
  <dc:title>The Lighthouse</dc:title>
  <spine>cover.xhtml, ch01.xhtml, ch02.xhtml</spine>
OEBPS/toc.ncx
  ch01.xhtml -> "I. The Keeper"
  ch02.xhtml -> "II. The Storm"
OEBPS/ch01.xhtml   (no <h1>, starts with prose)
  <p class="opener">The light had burned for forty
  years before anyone asked who tended it.</p>
  ... about 2,100 words per chapter

the-lighthouse.pdf (US Letter)

cover.xhtml    image only -> skipped, 1 image counted
page 1   I. The Keeper                  20pt bold, inserted from toc.ncx
         The light had burned for...    11pt Helvetica, 6.5in measure
         (class="opener" has no effect)
page 4   II. The Storm                  begins mid-page: no page break
page 7   ...final paragraph
         Page 7 of 7                    9pt grey footer on every page
PDF title: The Lighthouse (dc:title); file name from the upload
Summary: 2 chapters - 4,200 words - 7 PDF pages

Tips for best results

  • Check the summary chips before you download: the chapter count should match the book's contents page, and the PDF page count tells you whether a printout is realistic; prose fits roughly 600 words on a Letter page, so a 90,000-word novel runs to about 150 pages.
  • Pick A4 or US Letter from the Page size menu to match your printer; changing it reruns the layout and updates the page count immediately.
  • Ligatures such as fi in the warning mean the book was made from a print PDF, and every word that contained one shows a question mark in its place. Spot-check a few of those words in the preview, or print from the Word editor, which has your system fonts.
  • Kindle .mobi and .azw3 files are turned away by the file picker. Convert them to EPUB with Calibre first, and make sure the result is DRM-free.

Edge cases to watch

Chapters do not start on a new page. A chapter heading can sit two-thirds of the way down a page with the previous chapter's last paragraph above it.

The cover, illustrations and diagrams are dropped, and the warning counts them; picture books and comics produce almost nothing.

Drop caps, small caps, ornaments between scenes and verse indentation that lived in CSS classes arrive as plain 11pt paragraphs.

The PDF has no bookmarks panel. Chapter titles are headings in the text, so navigation in a reader is by page number and search.

Common errors and how to fix them

This EPUB is protected by DRM, so its chapters are encrypted and cannot be read. Only DRM-free EPUBs can be converted.
The chapter files are listed in META-INF/encryption.xml: the book was sold with Adobe, Kobo or similar protection, which nothing in a browser can remove. Look for a DRM-free edition from the publisher's own shop.
This file is not an EPUB. Choose an .epub ebook; a PDF or MOBI file cannot be read by this converter.
The file is not a zip archive or has no container.xml inside: renamed .mobi, .azw3 and PDF files cause this. Convert Kindle formats to EPUB with Calibre first; if the book really is an EPUB, the download may be corrupt.
This document uses characters the built-in PDF fonts cannot draw (for example "আ"). Open it in the Word editor and use Print → Save as PDF instead.
Most of the book is in a script outside the Latin range of Helvetica. Choose Edit in Word editor, which opens the whole book in the editor on this site, then press Print / PDF there; the print dialog uses the fonts installed on your computer.
This file is larger than 25MB. Split it into smaller files and try again.
EPUBs that size are heavy with images, which are dropped during conversion anyway. Open the book in Calibre, convert it to EPUB again with images removed or compressed, and upload the lighter file.

Best practices

  • Choose the page size before you judge the page count; A4 offers about four percent more room per page than Letter because the sheet is taller.
  • Rename the .epub before converting if its file name is a store identifier: the download takes the file's name, while the title inside the PDF comes from the book's metadata.
  • Page through the result before sharing it: front-matter pages such as the copyright notice are kept, and an inserted chapter title can sit next to a decorative title the publisher set as plain text.

Why chapters run together

A reading app paginates an EPUB on the fly, and most of them start every chapter on a fresh screen. This converter does not: the whole book becomes one sequence of lines, and a page ends only when the following line has no room left above the bottom margin. A chapter heading is kept with at least two lines of the text that follows it, so a title is never stranded at the foot of a page, but it will happily sit in the middle of one.

The choice is deliberate: a forced break before every chapter would add a part-empty page each time, and in a novel with sixty short chapters that is thirty or forty extra sheets. For a book that has to open each chapter on a new page, download a .docx from the EPUB to Word tool, add page breaks in Word or LibreOffice and save that as PDF.

Frequently asked questions

Does the PDF keep the book's fonts and cover?

No. The cover is skipped as an image-only page and the illustrations are counted in a warning. Text is set in Helvetica, or Courier where the book used a monospace style.

Can I convert a book bought from Amazon, Kobo or Apple Books?

Only if it is DRM-free. Kindle files are a different format and must be converted to EPUB first; protected books from any store are detected and refused.

Why does the page count change when I switch between Letter and A4?

The text is laid out again for the new page. A4 is narrower but taller than Letter, which gives about four percent more room per page, so a long book loses three or four pages per hundred when you switch to A4.

Is the text in the PDF searchable?

Yes. Every word is drawn as text in a standard font, not as an image, so readers can search, select and copy it and screen readers can voice it.