Instantly search all the documents you ever printed
For Linux users, here's a simple hack that does it by redefining the lpr command. Create a directory ~/printed, and save this script somewhere in your PATH before /usr/bin.
# if lpr is invoked with filenames
for file in "$@" ; do
if test -f "$file" ; then
tempname=$(tempfile -d ~/printed -s "-$basename.pdf")
echo "Converting $file to $tempname"
nice ps2pdf $file $tempname
# if lpr reads its data from the standard input
if test -z "$@" ; then
tempname=$(tempfile -d ~/printed)
tee $tempname | /usr/bin/lpr "$@"
nice ps2pdf $tempname $tempname.pdf
exec /usr/bin/lpr "$@"
I want to emphasize that this script is a hack, and the proper way of doing this is probably by modifying /etc/printcap or whatever CUPS uses instead. Tell me if you know how to do it.