EPUB 3 fixed-layout books use the <metadata>
structure to define a book’s layout. In EPUB 2, this metadata was defined in the Apple Display Options file, but in EPUB 3, the metadata is defined in the <metadata>
element within the OPF file. For example:
<metadata xmlns="http://www.idpf.org/2007/opf" xmlns:dc="http://purl.org/dc/elements/1.1/" >
<dc:title>Fixed-Layout Book</dc:title>
<dc:identifier id="bookid">0123456789</dc:identifier>
<dc:language>en</dc:language>
<meta property="dcterms:modified">2012-08-15T00:00:00Z</meta>
<meta property="rendition:layout">pre-paginated</meta>
<meta property="rendition:spread">none</meta>
</metadata>
The following table explains the available layout property attributes:
Example:
Defines whether a book is a flowing book or a fixed-layout book. Supported values are |
Examples designating two content documents per spread:
Example designating a single content document per spread:
Defines if there are one or two content documents per spread. Supported values are |
Example designating content documents to be rendered in a continuous scrolling view from spine item to spine item:
Must be defined if your book is to be presented in one continuous scroll without space or gaps in vertical scrolling mode. (See Vertical Scrolling.) Otherwise, a book will be presented vertically with space between content documents. |
Example:
Must be defined if your book contains embedded fonts. This is equivalent to Tip: You can use the |
Note: When creating fixed-layout books in EPUB 3, you must include the following prefix
attribute in the <package>
element in the OPF file:
<package xmlns="http://www.idpf.org/2007/opf" unique-identifier="bookid" version="3.0"
prefix="rendition: http://www.idpf.org/vocab/rendition/#">