Jump to content

How To Read O’Reilly eBooks on the iPad

+ 1
  Adam Witwer's Photo
Posted Jul 26 2010 07:39 AM

Update: EPUB files now open directly in iBooks on the iOS, which means that you can download the EPUB from the oreilly.com Your Products page and open immediately on the iPad/iPhone/iPod.

This page decribes the ways in which you can load O'Reilly ebooks onto your iPad. First, we’ll look at how to load and read ePubs and PDFs from O’Reilly ebook bundles. Then, we’ll cover how to extract an ePub file from an O’Reilly iPhone/iPod ebook application, available in the iTunes Store.

eBook Bundles

O’Reilly ebook bundles typically include four formats:
  • ePub
  • PDF
  • Mobi
  • Andriod APK

More information and links about each format are available on our main ebooks page. Of these four formats, PDF and ePub can be imported and read on your iPad. Let’s look at these two formats.

ePub

The simplest way to load an ePub file to your iPad is to use iTunes, as described on O’Reilly Answers. Another article on Answers describes how to take advantage of the Automatically Add to iTunes directory that was introduced in iTunes 9.

You can use the methods described in the Answers articles to load your ePub to iBooks, but if you’d like to try a different ereader, you have other options:

PDF

With the recent update to the iBooks app, you can add PDF files to your iPad using the same methods described in the ePub section above. O’Reilly PDFs render best and most consistently with the iBooks app, so we recommend it, despite the fact that it is not nearly as feature-rich as other PDF readers on the iPad. We were glad to see that a recent update to iBooks (version 1.1.1) includes clickable hyperlinks between PDF pages and takes advantage of PDF bookmarks to create a table of contents.

Give some of the other PDF readers a try to see which one works best for you. But please note that we officially support only iBooks, and cannot guarantee that our PDFs will render correctly in other readers or provide technical assistance for them.

Importing ePub from iPhone/iPod Applications

Look Out for Non-eBook Apps
The methods of ePub extraction described in this section apply to our ebook apps only. The vast majortiy of our apps are simply app versions of our books, but we’ve also released non-ebook apps such as The Geek Atlas Companion and Head First PMP Exam, and we expect to add more in the future. While you should definitely check these non-ebook apps out, you should not expect to be able to extract ePubs from them.


Importing the Manual Way

As you may know, many of our books are also for sale as apps. While these apps are compatible with the iPad, they have not been optimized for it, so the experience is not all it could be. If you own one of our iPhone/iPod ebook apps, then you also own the same ePub that is sold in our ebook bundles. Because our apps include no DRM, you can extract the ePub and read it in one of the ePub readers described above. This process of extraction is described on our iPhone app page. Once you’ve got the ePub, you can read it with an iPad ePub reader.

Importing the Slightly Less Annoying Way

Extracting the ePub from an app can be a little tedious, so we’ve tried to make it less so with some simple scripting tools. Here is a bash function that you can run in a Mac OS X environment via the Terminal:

function add_to_ibooks()
{
cd ~/Music/iTunes/iTunes\ Media/Mobile\ Applications
unzip $@
cd Payload/*/book
zip -q0X `echo $@ | sed 's/\.ipa/.epub/'` mimetype
zip -qXr9D `echo $@ | sed 's/\.ipa/.epub/'` *
mv `echo $@ | sed 's/\.ipa/.epub/'`  ~/Music/iTunes/iTunes\ Media/Automatically\ Add\ to\ iTunes
cd ../../..
rm -rf Payload
}

This script takes the name of an .ipa file (an application file), extracts the ePub file, drops it in the Automatically Add to iTunes directory, and cleans up the mess. Add it to your .bashrc config file and then run it like so:

$ cd ~/Music/iTunes/iTunes\ Media/Mobile\ Applications
$ add_to_ibooks <filename>.ipa

This solution works well in a Mac OS X environment, assuming you haven’t moved or changed your iTunes directories.

bash Shell, What??

Not much for the command line? That’s fine. We’ve wrapped the same script in a drag-and-drop applet. Download and unzip it, and you’ll have a file named add_to_ibooks.app. Simply locate the .ipa file and drag it onto the add_to_ibooks.app file. Sync your iPad with iTunes, and the extracted ePub will be loaded to iBooks.

As with the shell script, this applet is intended for users in a Mac OS X environment, using the default iTunes directory structure.

Windows

Got a solution similar to the one above but for a Windows environment? Let us know. We’ll test it, and if it works, we’ll add it to this page.

Tags:
2 Subscribe


6 Replies

+ 3
  BrianSawyer's Photo
Posted Jul 26 2010 11:37 AM

If you find yourself away from your iPad-syncing machine (as I did recently) but want to get your PDF into iBooks immediately, I've found Dropbox to work great (click here to get a free account). I already use Dropbox to sync my files on multiple desktops and phones, but the iPad app is exceptional.

To transfer your eBook this way, just add the PDF to your Dropbox folder on your desktop, and then open Dropbox on your iPad. The PDF will appear in a readable preview mode, but if you select the share icon on the right side of the menu bar, you'll see a number of options, including "Open in ... iBooks":

Attached Image

Once selected, the PDF does just that and appears on your PDF bookshelf:

Attached Image

Just tap it to start reading!

Attached Image
0
  Richard M. Smith's Photo
Posted Dec 16 2010 11:18 AM

Hi Tid,

Did something change within the past few weeks with the way that eBooks are produced in the PDF format? Four O'Reilly books that I purchased recently in the PDF format don't show any images on my iPad. One example is the new Canvas Pocket Reference book. The missing image problem occurs in both iBooks and GoodReader.

I have 200 other eBooks in the PDF format from O'Reilly on my iPad and they are all fine. Ditto for another 200+ PDF files on my iPad.

Richard M. Smith
0
  Sanders Kleinfeld's Photo
Posted Dec 16 2010 03:59 PM

Hi Richard,

We're aware of the image problem with Canvas Pocket Reference and iBooks, and fixed it earlier today. If you redownload the PDF from your O'Reilly.com account, you should get a revised version of the file that should display properly on the iPad.

We've identified a step in our PDF production process that does not appear to play nicely in all cases with the iBooks reader. Moving forward, we are eliminating this step from our workflow, so this problem should not recur with our new PDF releases.

Would you happen to recall the other 3 titles with which you experienced the same image-dropping problem on iBooks? We're in the process of rectifying previously released PDFs with the same problem, and I want to make sure we correct any files that still have this issue.

Thanks for your feedback,
Sanders

---
Sanders Kleinfeld
Publishing Technologies Specialist
O'Reilly Media Inc.
10 Fawcett Street
Cambridge, MA 02138
(617) 499-7472
0
  DoDoDUH's Photo
Posted Jan 12 2011 01:55 PM

Sanders -

Bought an eBook yesterday that has the image problem on the iPad - Learning PHP, MySQL, and Javascript by Robin Nixon. Bought 4 eBooks yesterday and this was the only one with the image problem.

TIA,
Phil
0
  drengfer's Photo
Posted Oct 05 2012 10:23 AM

BrianSawyer's solution works just as seamlessly with ePub format, if that's what you prefer to use. :)
 : Jan 29 2013 05:05 PM
I recently (just now) tried adding three ePub format downloads I just downloaded from O'Reilly into my iTunes "book" library and nothing happened. There was no error message from iTunes, and neither did the books appear in the list of books in the library. I repeatedly tried this, both by using the "add to library" menu in iTunes and simple drag-and-drop and every time it failed to install the ePub file to the iTunes Library.

However I tested the Dropbox method on one of the ePub files and it worked flawlessly.

i have no idea why that's the case but if you can't load your documents into iTunes directly then I would heartily recommend using the Dropbox sync method.