Tuesday, December 11, 2007

Merging PDFs with ghostscript

Just a quick tip tonight, mostly for Linux/Unix users (though there is no reason the clever Windows users couldn't use this too).
As you may already be aware, ghostscript is a (free) tool for working with Adobe's pdf and postscript formats. Among the uses I have found for it is concatenating pdf files (in this case chapters of an ebook to make it easier to search the whole thing). While you can do this with Acrobat reader in Windows, it is a quick single liner on the command line using ghostscript:
gs -DBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=output.pdf file1.pdf file2.pdf... fileN.pdf

If you're like me and have your source pdfs scattered around a bunch of subdirectories you can try this command (for the BASH shell)

find | grep -i pdf |xargs gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=output.pdf

You might want to try the command first without the call to xargs and gs (ghostscript) to make sure only the files you want are selected.

Note: I have talked about ghostscript before

Sunday, December 09, 2007

CD Burning in Vista (w/ free software)

So my fancy new computer running Vista comes with a DVD burner, but no software that uses it (besides the very limited built in stuff) and I want to free up some disk space by offloading extra data to dvds; What's a geek to do?

Rather than simply use my Linux machine and the network (which is a totally reasonable solution by the way) I did some searching and came up with a nice package called InfraRecorder. InfraRecorder is a GPL2 app which burns data to DVDs and CDs quickly and easily on Windows machines (Those of you lucky users of older versions need not feel left out). It isn't Nero or K3B grade software but it has all the features a normal person needs from their burning software (and then some). It can burn arbitrary files and iso or bin/cue images to cds and dvds. It can (if the user seeks out the option under project properties) burn the common iso9660 and UDF filesystems, and even create images. The UI is fairly simple and the defaults are reasonable (though if you use multisession discs you might want to give the FAQ a look).

Read what the author has to say and download it here.