Skip to content

Instantly share code, notes, and snippets.

@dak
Forked from g-P/eloquent_chapters.links
Created July 30, 2014 14:26
Show Gist options
  • Save dak/dfa64bc78d6e2ddea6ad to your computer and use it in GitHub Desktop.
Save dak/dfa64bc78d6e2ddea6ad to your computer and use it in GitHub Desktop.
#!/bin/bash
while read p; do
f=${p##*/}
f=${f//html/pdf}
# Download wkhtmltopdf from http://wkhtmltopdf.org/
wkhtmltopdf $p $f
done <eloquent_chapters.links
"/System/Library/Automator/Combine PDF Pages.action/Contents/Resources/join.py" -o eloquent.pdf *.pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment