Reflowable EPUB

Use the Reflowable EPUB file format when you want content to adapt to the device or app your readers use.

If you're new to EPUB in Affinity, read the "About EPUB" topic first. It covers when to use each EPUB type, how to export, and how to test your files.

With a Reflowable EPUB, you need to take extra steps to prepare your content for a good reading experience.

Positioning images

Make sure images appear in the correct place within your EPUB's text. Use the Pinning panel to set an image to float with text. Then drag the pin where you want the image to appear.

To help users navigate a Reflowable EPUB, Affinity can include your publication's table of contents (TOC) as a navigation document. The navigation document is an interactive TOC that readers can open at any time with a click or a tap.

To create one, use the Table of Contents panel as you would for a print document. Then set the TOC type to EPUB: Primary so Affinity uses it to create a navigation document in your EPUB.

You can also add supplementary TOCs that list your EPUB's images and tables. Note that not all EPUB readers provide access to these.

Setting a reading order

Check the order of items on the Reading Order panel and adjust as needed. This ensures all text and alt text is presented in a logical sequence for screen readers. The panel also lets you exclude objects you don't want presented, such as pull-quotes.

Reading order defaults to top-to-bottom on the page. Items can be reordered by dragging, or an item can be excluded by clicking the check mark on its entry.

Advanced text styling

When you export to Reflowable EPUB, Affinity encloses text in HTML tags based on its text style. This helps EPUB readers and assistive technologies to understand the structure.

Further, when writing extended descriptions of objects (using the Tags panel), you can write valid HTML markup into them to give them structure when the HTML setting is enabled. This markup is preserved in Reflowable EPUB output, so that assistive technologies can better understand the structure.

Styles are applied to text in EPUBs using CSS classes. Affinity automatically translates your document's text styling to CSS on export unless instructed not to. You may want to use external CSS for Reflowable EPUB instead—for example, to adapt margins or spacing on smaller screens.

To apply further presentation rules, add your own CSS files through the EPUB panel. You can link these files or embed them in your Affinity document.

How to export a Reflowable EPUB

How to add a table of contents or list of images/tables to your Reflowable EPUB

How to set HTML tags and CSS classes for your text styles

How to set a CSS class for your images

How to add custom CSS to your Reflowable EPUB

How would you rate the help you received from this article?