Converting the Swift Programming Language to PDF

Screen Shot 2015-01-08 at 11.52.19 AM

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.

  1. Find the epub. Easiest way to do this is to delete your copy from iBooks and re-download. Then hop over to ~/Library/Containers/ and sort by date modified.
  2. 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 -r 881256329.epub), rename it from zip to epub, and throw it into Calibre.
  3. 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.


  • Thank you! 🙂

  • looks like the new 2.0 update has DRM, so this way not working, wandering if there is a new way to solve this

    • Second that