An updated approach.
- Go to ~/Library/Containers/com.apple.BKAgentService/Data/Documents/iBooks/Books.
- Once there, locate the 881256329 epub folder. You must use a non-beta version of the book. Beta versions are DRM’ed. If your version appears to be DRM’ed (a holdover from the beta period), delete it in iBooks and re-download.
- Copy this epub folder to your desktop. Remove the epub extension, zip it, rename to epub. Apple uses a non-standard epub format, and these steps transform the book back to something Calibre can import and convert.
- Drag this epub into Calibre.
- Click Convert books, choose PDF.
- In Page Setup, select default output profile, set margins to 72 on each side
- In PDF Output, add printable TOC.
- Click OK and let the conversion start
Result:
7 Comments
Please note that you may have to delete your local copies and download them again to get DRM-free copies of “The Swift Programming Language (Swift 2.1)” and “Using Swift with Cocoa and Objective-C (Swift 2.1)”.
In relation to Swift and PDFs, is it possible to “print” a Playground with markup rendered to a PDF or Postscript file? I could have sworn it used to work fine for me, but lately when I’ve done it, the markup doesn’t show in the PDF.
How many total pages is it when converted to PDF?
Worked great for creating both PDF and AZW3. Thanks!
Incredibly, if you move a beta DRM-protected file to Kindle, it works.
Instead of step 5, open epub file and in the bottom left corner you will find a printer icon. Click it and click OK and it will take a few moments to convert then Bob’s is your uncle.
Convert book 1 of 1 (881256329)
Resolved conversion options
Rest of this very long comment: http://pastie.org/10984578