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:
- Reflowable (Landscape/Portrait)
- Fixed Layout (Landscape/Portrait)
So let’s see code of xml file for each.
- 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>
- 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 postsRecent Posts
- How to publish an eBook on Kobo February 26, 2019
- How to publish an eBook on Apple February 26, 2019
- Publishing Playscripts as an eBook May 5, 2016