Introduction
PubCoder can turn a reflowable EPUB book into fixed-layout pages: it creates the pages, blank or using a template page of your choice, and flows the text of every chapter through them, with the book’s images, videos and styles. It’s the quickest way to make a fixed-layout edition of a book you already publish as a reflowable EPUB, for example to add interactivity, illustrations, video, read aloud, soundtrack, activities or assessments.
To start a new project from an EPUB, click Start from EPUB in the New Project tab of the Start Window. To add a book to the project you’re working on, choose File ▹ Import from EPUB (Reflowable)… from the menu bar. You can also ask the AI Assistant to import a book for you.

PubCoder imports reflowable EPUB books (.epub), keeping:
- the chapters, in reading order: each chapter starts on a new page
- headings, paragraphs, lists, tables, figures, bold and italic, and the book’s CSS styles
- images and videos, which are also added to the Assets Library
- links: links to web pages keep working, and internal links to other parts of the book are automatically updated to link to the right page in the new fixed-layout pagination
- footnotes, which become ordinary text
Fixed-layout EPUBs and EPUBs protected by DRM can’t be imported.
Importing a book
Starting a new project from an EPUB
- In the New Project tab of the Start Window, click Start from EPUB, then OK
- Drag your EPUB into the window, or click + to choose it, then click Continue
- Review the import settings and click Continue
- Choose the title, author, page size, orientation and language of the new project, as for any new project. The title and author are taken from the book
- Click Continue: PubCoder creates the project and imports the book
Importing into an existing project
Choose File ▹ Import from EPUB (Reflowable)… from the menu bar and select the book. The Import Document window opens with the import settings and the number of chapters in the book: review them and click Import. Here you can also fill a template page you designed and choose where the new pages go.

Import settings
-
Pages defines the pages that receive the text:
- Create new blank pages: each new page gets one text box with the specified Margins, in pixels. Font and Size start from your project’s default text style: change them only if the imported text should look different from the rest of the project
- Duplicate a template page: available when you import into an existing project. Design a page first, with its background, decorations, page number and a text box for the text, then choose it in Page and the box to fill in Text box (the largest box is already selected). PubCoder copies the template page for every new page it needs. Turn on Also fill the template page itself to start the text on the template page too
-
Text layout defines how the text is split between pages:
- Fill pages completely: paragraphs are split across pages when needed, so every page is full. Choose it for novels and long texts
- Keep paragraphs whole: a paragraph never spans two pages, and one that does not fit moves to the next page. Choose it when each paragraph should stay together. A very long paragraph may still overflow its box
- One scrolling page per chapter: each chapter becomes a single page, with the whole chapter in a scrolling text box
- Chapters lets you import All chapters or only a range of chapters
Tip: Before importing a long book, try to import a single chapter to check the page size, margins and text layout: undo it, adjust the settings and import the whole book.
-
Book appearance defines how the text looks:
- Keep the book’s styles (CSS): the text keeps the fonts, colors and spacing of the EPUB.
- Import Embedded Fonts: imports the font files included in the book.
Important: Fonts embedded in a book are licensed to its publisher: import them only if you are allowed to redistribute them in your publication.
- Import Embedded Fonts: imports the font files included in the book.
- Import as clean text: the book’s styles are left out, and the text takes the Font and Size above, or the style of the template’s text box
- Keep the book’s styles (CSS): the text keeps the fonts, colors and spacing of the EPUB.
- Insert pages: only available when you import into an existing project, defines where the new pages go: At the end of the publication, After the current page or, with a template page, After the template page.
After the import
When the import completes, every new page has a text box filled with the book’s text. If you edit the text, change its size or change the size of the boxes, you can choose Edit ▹ Reflow Text from the menu bar to redistribute the text through the pages: PubCoder fills every box again and adds pages when needed (see Text Flows and Reflow).
The first page of each chapter has Chapter Starts Here turned on and the chapter title as its Chapter Name, so the table of contents is ready.
If something could not be imported as it was, for example text that does not fit its box, PubCoder lists it when the import ends.
The whole import is a single step in your project’s undo history: to remove it, choose Edit ▹ Undo from the menu bar (⌘Z on Mac, Ctrl+Z on Windows). You can also click Stop while the import is running: the publication goes back to how it was, but images, videos and fonts already imported from the book stay in the Assets Library.
Troubleshooting
| “The import failed.” with “the epub is fixed-layout (pre-paginated)” | Only reflowable EPUBs can be imported. A fixed-layout EPUB has no flowing text to place into pages |
| “The import failed.” with “the epub is encrypted (DRM-protected)” | Ask the publisher for a copy of the book without DRM |
| “Invalid chapter range.” | In From and to, type chapter numbers between 1 and the number of chapters shown at the top, with From not greater than to |
| A note about the fonts embedded in the book | Fonts embedded in a book are licensed to its publisher: keep them only if you are allowed to redistribute them, otherwise import with Import Embedded Fonts turned off |
| Some text does not fit its box | A heading, table, image or very long paragraph is taller than the text box: make the box bigger or the element smaller, then choose Edit ▹ Reflow Text from the menu bar |
| The Upgrade to PubCoder Pro window opens | Importing books is a PubCoder Pro feature: try PubCoder Pro or upgrade your subscription from that window |
If you need help, contact us.