Created
July 30, 2014 13:48
-
-
Save g-P/cbdfd4a4b982ba8fa04b to your computer and use it in GitHub Desktop.
Eloquent Javascript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://eloquentjavascript.net/index.html | |
http://eloquentjavascript.net/00_intro.html | |
http://eloquentjavascript.net/01_values.html | |
http://eloquentjavascript.net/02_program_structure.html | |
http://eloquentjavascript.net/03_functions.html | |
http://eloquentjavascript.net/04_data.html | |
http://eloquentjavascript.net/05_higher_order.html | |
http://eloquentjavascript.net/06_object.html | |
http://eloquentjavascript.net/07_elife.html | |
http://eloquentjavascript.net/08_error.html | |
http://eloquentjavascript.net/09_regexp.html | |
http://eloquentjavascript.net/10_modules.html | |
http://eloquentjavascript.net/11_language.html | |
http://eloquentjavascript.net/12_browser.html | |
http://eloquentjavascript.net/13_dom.html | |
http://eloquentjavascript.net/14_event.html | |
http://eloquentjavascript.net/15_game.html | |
http://eloquentjavascript.net/16_canvas.html | |
http://eloquentjavascript.net/17_http.html | |
http://eloquentjavascript.net/18_forms.html | |
http://eloquentjavascript.net/19_paint.html | |
http://eloquentjavascript.net/20_node.html | |
http://eloquentjavascript.net/21_skillsharing.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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
adding top and bottom margins adds a lot to the 'readibility' of the final .pdf
Those with a patched qt can also add page numbers if they so desire. wkhtmltopdf is wonderful indeed. Thanks for the script g-P!
For the non-privileged, pdftk will also combine the extracted chapters just fine.