An FB2 book has no pages. It is a single XML file that describes chapters, paragraphs, footnotes and pictures, and leaves the typography to whatever program opens it. A PDF is the opposite: every page is fixed. Converting FB2 to PDF therefore means typesetting the book once, with one page size and one font, and you should know which ones before you print two hundred pages.
When FB2 to PDF is the right conversion
- Printing. A chapter for a seminar, a manuscript to proofread on paper, a whole book for someone who does not read on screens.
- Sending a book to someone without an FB2 reader. Outside Russian-speaking countries few people have one. A PDF opens in every browser.
- Reading and annotating on a tablet or computer. PDF apps offer highlighting and handwritten notes that stay attached to a fixed place on the page.
- Archiving a text in a stable form, with the same pagination for everyone who quotes from it.
For an e-reader it is the wrong conversion. Kindle does not support FB2, and neither do Kobo or tolino, but a letter-sized page shrunk to a 6-inch screen is hard to read. Convert the book to EPUB instead, so the text reflows to the screen. More about that on our EPUB format page. PocketBook readers open FB2 directly and need no conversion at all.
What the PDF looks like
We converted a test book and inspected the result, so this is what you get:
- Page size: US Letter, 8.5 × 11 inches (612 × 792 points), with margins of at least one inch.
- Cover: the cover image from the FB2 fills the entire first page. If its proportions differ from the page, it is stretched slightly to fit.
- Typeface: a serif face in the style of Times, set at roughly 15 points. That is larger than in a printed book and comfortable on a screen.
- Fonts are embedded, only the characters actually used. Accented Latin letters, Cyrillic and Chinese or Japanese characters display on any device, and the text can be selected, copied and searched.
- Pictures stored inside the FB2 are decoded and placed in the text. JPEG images stay JPEG.
- Chapters: titled sections become PDF bookmarks, so the outline panel works as a table of contents.
- Footnotes: a note reference in the text stays a clickable link that jumps to the note.
- Document properties: book title and author are written into the PDF, the FB2 genre becomes a keyword.
- No page numbers and no running headers are added.
What cannot carry over is the freedom of the original. In an FB2 reader you pick the font, the size and the margins. In the PDF they are decided once.
Common problems with FB2 to PDF
The PDF is Letter size and I need A4
Letter is 6 mm wider and 18 mm shorter than A4. Choose Fit or Scale to paper size in the print dialog and the pages are reduced by a few percent. If you need true A4 pages, for example for a print shop, see the desktop route below.
The conversion fails: the FB2 is not valid XML
FB2 is strict XML. One unclosed tag makes the whole file invalid, and the converter stops instead of guessing. Lenient reading apps often open such a book anyway. Open the file in an FB2 editor or a text editor with XML checking, repair the reported line and upload again.
Cyrillic turns into garbled characters
Older Russian books are encoded in Windows-1251. That is fine as long as the first line of the file says so, for example encoding="windows-1251". When the declaration is missing or wrong, the converter has to guess and the text can come out wrong. Add the correct declaration in a text editor and convert again.
My file is .fb2.zip
FB2 books are often distributed zipped, because pictures stored as Base64 text make the file about a third larger than the images themselves. Unpack the archive and upload the .fb2 file inside.
Some pictures are missing
A picture whose Base64 data is damaged cannot be decoded and is skipped. The rest of the book converts normally.
Other ways to get a PDF
If you only want to read the book, you may not need a PDF. FBReader opens FB2 on Android, iPhone and desktop systems. For full control over the result, the free e-book manager calibre converts FB2 to PDF on your own computer and lets you set A4 paper, margins, font size and page numbers. It is the better tool when you prepare a book for printing.
Our converter is for the quick case: a book or a few, on any device, without installing anything. Up to 10 files at once, 100 MB each, no registration. Uploaded files are deleted after the conversion and results after 14 days. If you already have the book as EPUB, the EPUB to PDF page describes that conversion.
FB2 and PDF compared
| FB2 | ||
|---|---|---|
| Created by | Dmitry Gribov, 2004 | Adobe, 1993 |
| Current version | schema 2.21 from January 2008 | ISO 32000 |
| Describes | the structure of a book | the appearance of pages |
| Layout | reflows, set by the reading app | fixed |
| Fonts | none in the file | embedded |
| Pictures | Base64 text inside the XML | binary, compressed |
| Opens in | FBReader, PocketBook, a few other apps | any browser or PDF reader |
FictionBook was designed to outlive individual reading devices, which is why it records what each part of a book is and nothing about how it should look. Our FB2 format page explains the structure in detail. Technical references: the PRONOM registry of the UK National Archives for FB2 and the Library of Congress description of the PDF family.