View Single Post
Old 04-20-2014, 08:01 AM   #4
odedta
Addict
odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.
 
Posts: 398
Karma: 96448
Join Date: Dec 2013
Device: iPad
Yes, you need to include that file, for a fixed layout you need to do the following:

1. Update your content.opf as such:
  • prefix="rendition: http://www.idpf.org/vocab/rendition/#" - add to <package>
  • <meta property="rendition:layout">pre-paginated</meta> - add to <metadata>
  • <meta property="rendition:layout">landscape</meta> - add to <metadata>
  • <meta property="rendition:spread">landscape</meta> - add to <metadata>
Reference for these @ http://www.idpf.org/epub/fxl/#property-defs

2. Make use of the
Quote:
linear="yes"
attribute in the spine elements

3. Add this:
Quote:
<meta name="viewport" content="width=760, height=1000" />
to the head tag of each html file in your epub, note the height and width.

4. Add com.apple.ibooks.display-options.xml file to your epub, you can use this template:
Quote:
<display_options>
<platform name="*"> <!-- all devices -->
<option name="fixed-layout">true</option> <!-- fixes the layout -->
<option name="specified-fonts">false</option> <!-- set to "true" when embedding fonts -->
<option name="open-to-spread">true</option> <!-- single page or full spread on open -->
<!--<option name="orientation-lock">landscape-only</option> "landscape-only" or "portrait-only" or leave this line commented -->
<option name="interactive">false</option> <!-- set to "true" when using javascript or canvas -->
</platform>
</display_options>
odedta is offline   Reply With Quote