User Tools

Site Tools


kicad:ps2pdf-d
no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


kicad:ps2pdf-d [2013/06/26 02:00] (current) – created mithat
Line 1: Line 1:
 +<file bash 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
 +
 +</file>
kicad/ps2pdf-d.txt · Last modified: 2013/06/26 02:00 by mithat

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki