From Google Books to PDF lickety-split!

So I got a Kindle for Xmas and wanted to start sticking some content on it. Google Books has some gems (some in full!) so i have just figure out this process of getting them into PDF format and then onto my Kindle. I use PDF as you get images from Google Books and not text. Somebody might wan to find a command line image-to-text converter (OSC) and stick this in at the end of this process (depending on how keen you are). There are some large text books i would consider doing it to, but for now…

  1. Use Firefox with the GreaseMonkey add-on and the Google Book Downloader script to generate a list of links to all the page images
  2. This will genarete a long list of links, one for each page, so you can then use the FireFox add-on DownThemAll! to… downlaod them all…
    • create a folder for them all to live in
    • under “Fast filter” I entered “‘books?id=” to select the book page links
    • Set the “Renaming Mask” to “*text*” (less the quotes)
  3. This should give you a folder with all the book pages as images. To convert these to PDF you will need imagemagick installed (on the Mac i recommend using Homebrew to get this installed quickly). Simply crack open the terminal/command-line:
    cd /folder/with/the/downloaded/images
    and then:
    convert *.png mynewbook.pdf

…and your done!

If you have a eBook reader them you might want to import the PDF with Calibre and upload to your respective device.