Hacker Timesnew | past | comments | ask | show | jobs | submitlogin

it's unfortunately per chapter... rather cumbersome :(


All PDFs for v2 combined in order:

http://dl.dropbox.com/u/1748506/SEv2.pdf


EDIT: Please use the following link; I blew through my Dropbox Public folder bandwidth quota.

http://ejmwstkgutjd.s3.amazonaws.com/SEv2.pdf


wget -rA "SEv2*.pdf" --no-parent --level=0 http://www.cl.cam.ac.uk/~rja14/book.html


Stitch those PDFs together while you grab coffee! Run this in the directory where you just wgot the pdfs:

    files=`ls | grep toc && ls | grep pref && ls | grep ack && ls | grep c && ls | grep bib && echo ls | grep index`; gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=SecurityEngineering2ndEd.pdf $files
When you get back, you should have a single file, SecurityEngineering2ndEd.pdf (edit the command to name yours whatever you like)

Edit: This assumes you're running a unix variant and have ghostscript (gs) installed

Edit: Use this instead in case toomuchtodo's dropbox link doesn't work for you (like what happened for me: "This account's public links are generating too much traffic and have been temporarily disabled!")


GS is really slow at this. Pdfunite from Poppler is faster.

    wget http://www.cl.cam.ac.uk/~rja14/Papers/book2coverlarge.jpg
    convert book2coverlarge.jpg cover.pdf
    pdfunite cover.pdf *toc.pdf *pref.pdf *acks.pdf SEv2-c*.pdf *biblio.pdf *index.pdf SEv2.pdf


Debian/Ubuntu repositories have pdftk, which has been good enough for all my PDF merge/split/etc needs.

E.g. 'pdftk *.pdf cat output combined.pdf'; 'pdftk -h' has more examples


Awesome, thanks for the tip!


Thank you for posting that command! It got me to read the wget man page in order to understand what you did and now I have another useful tool I can add to my arsenal.


Was about to do this, then figured someone on HN probably had a pdf available already. And indeed ^^. Thanks anyway, saves me having to figure out the wget params.


You can get a pdf here[1]. It is the link from the v2 website, but it says v1, so I'm not 100% sure it's the v2.

1. http://www.cl.cam.ac.uk/~rja14/musicfiles/manuscripts/SEv1.p...


The pdf in your link has a section titled "Further Acknowledgments for the Second Edition", so I think it's safe to assume it's v2.


No, it has only 24 chapters. Version 2 has 27.


Can you not wget each one and then use some free PDF tool to stitch them together?


My thoughts exactly. You can try one of methods listed here:

http://www.linux.com/news/software/applications/8229-putting...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: