User Tools

Site Tools


kicad:ps2pdf-d

Differences

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

Link to this comparison view

kicad:ps2pdf-d [2013/06/26 03:00] (current)
mithat created
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 03:00 by mithat