miércoles, enero 12, 2011

Change resolution of PDF to 'screen'


gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputFile=out.pdf in.pdf


Source: http://www.ubuntugeek.com/ubuntu-tiphowto-reduce-adobe-acrobat-file-size-from-command-line.html

martes, enero 11, 2011

Extract first page from multiple pdfs


for file in *.pdf ; do pdftk "$file" cat 1 output "${file%.pdf}-page1.pdf" ; done


From: http://superuser.com/questions/207414/extract-first-page-from-multiple-pdfs