pdf2page

A small shell script to convert singlepage A4-sized pdf documents to two pages per sheet using pstools.

#!/bin/bash
function switch() {
    rm -f pdfopt.ps
    mv pdfopt2.ps pdfopt.ps
}
pdftops -paper A4 -level3 $1 pdfopt.ps
psresize -p a4 pdfopt.ps pdfopt2.ps ; switch
psnup -n2 -d1 -pa4 -Pa4 pdfopt.ps pdfopt2.ps ; switch
psresize -pa4 pdfopt.ps pdfopt2.ps ; switch
psresize -Pa4 pdfopt.ps pdfopt2.ps ; switch
ps2ps pdfopt.ps pdfopt2.ps ; switch
ps2pdf pdfopt.ps `basename $1 .pdf`_2.pdf
rm -f pdfopt.ps

Linkbacks

Use the following URL for manually sending trackbacks: http://rigo.info/lib/plugins/linkback/exe/trackback.php/en:blog:pdf2page
en/blog/pdf2page.txt · Utolsó módosítás: 2009-04-14 00:00 (külső szerkesztés)
CC Attribution-Noncommercial-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0