User Tools

Site Tools


kicad:ps2pdf-d
ps2pdf-d
#!/bin/bash
 
# DESTRUCTIVELY convert all postscript files in working directory to PDF.
# Requires ghostscript.
 
# Mithat Konar 2013 <http://mithatkonar.com>
 
# Helpful hint: http://ghostscript.com/doc/current/Use.htm#Known_paper_sizes
 
OPTIONS="-dOptimize=true -sPAPERSIZE=letter"
 
FILES=$(ls -1 *.ps)
 
for file in $FILES
do
    ps2pdf $OPTIONS $file && rm $file
done
kicad/ps2pdf-d.txt · Last modified: 2013/06/26 02:00 by mithat

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki