Locking eBook Orientation

No Comments

There are two options to lock the eBook orientation. The best way is to include the locking code in the com.apple.ibooks.display-options.xml file.

Step 1: Open the .xml file in your notepad/wordpad. And you will see the code as below:

Now, as you know there are two types of eBooks:

  1. Reflowable (Landscape/Portrait)
  2. Fixed Layout (Landscape/Portrait)

So let’s see code of xml file for each.

  1. Reflowable: For a reflowable eBook, the xml file will have the following code:

 <?xml version=”1.0″ encoding=”UTF-8″?>
<display_options>
<platform name=”*”>
<option name=”specified-fonts“>true</option>
</platform>
</display_options>

  1. Fixed Layout: For this type of eBook, the xml file will have the following code:

 <?xml version=”1.0″ encoding=”UTF-8″ ?>
<display_options>
<platform name=”*“>
<option name=”specified-fonts“>true</option>
<option name=”fixed-layout“>true</option>
</platform>
</display_options>

To add Locking Orientation to reflowable/fixed layout eBook, add the below code as per your requirement in the xml file:

Landscape:  <option name=”orientation-lock“>landscape-only</option>
Portrait:  <option name=”orientation-lock“>portrait-only</option>

Step 2: Once the code is added for the respective mode, save and close the xml file. And embed(drag and drop) it through Total Commander software in the META_INF folder with the container file. Alternatively you can create a zip of the ePub file and drag and drop the xml file in the META-INF folder and can rename .zip to .epub again.

This is author biographical info, that can be used to tell more about you, your iterests, background and experience. You can change it on Admin > Users > Your Profile > Biographical Info page."

About us and this blog

We are a digital marketing company with a focus on helping our customers achieve great results across several key areas.

Request a free quote

We offer professional SEO services that help websites increase their organic search score drastically in order to compete for the highest rankings even when it comes to highly competitive keywords.

More from our blog

See all posts
No Comments

Recent Posts