May 22
After I downloaded a few eBooks from Bruce Perens’ Open Source Series, I noticed that several of the books were zip files containing the chapters as individual PDF files. I don’t know about you, but I would rather hava a single monolithic PDF file for each book.
By using Ghostscript and pdftk, we are able to create the PDF file with no problem:
gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE="Implementing CIFS The Common Internet File System.pdf" -dBATCH frontmatter.pdf content.pdf foreword.pdf intro.pdf ch01.pdf ch02.pdf ch03.pdf ch04.pdf ch05.pdf ch06.pdf ch07.pdf ch08.pdf ch09.pdf ch10.pdf ch11.pdf ch12.pdf ch13.pdf ch14.pdf ch15.pdf ch16.pdf ch17.pdf ch18.pdf ch19.pdf ch20.pdf ch21.pdf ch22.pdf ch23.pdf ch24.pdf ch25.pdf ch26.pdf apa.pdf apb.pdf apc.pdf apd.pdf glossary.pdf references.pdf index.pdf
On Ubuntu Linux, you can quickly install these two tools with a single command:
aptitude install gs pdftk
Leave a Reply
Recent Comments