I hate that Apple has more or less stopped its practice of including PDF links in its reference library online docs. I hate even more that I don’t have a PDF version of the Swift Programming Language to search through and mark up using Preview. (I don’t really like the iBooks interface.)
Today, I spent a while googling and figuring this out so you don’t have to.
- Find the epub. Easiest way to do this is to delete your copy from iBooks and re-download. Then hop over to ~/Library/Containers/com.apple.BKAgentService/Data/Documents/iBooks/Books and sort by date modified.
- Adjust the epub to something Calibre can read. Let me save you a lot of time. The .epub in the Books folder is actually a folder itself, and not a renamed zip file per standards. So create a zip file (zip out.zip -r 881256329.epub), rename it from zip to epub, and throw it into Calibre.
- Convert with Calibre. Start here. Add the new epub and convert it to a PDF destination. I used the default settings. When the conversion job finishes, open in Preview.
As you see, there’s really not that much involved. It was the time figuring out why the epub wouldn’t open that really drained my morning.