Newer
Older
Presentations / MC / HepData_RD / images / derotate.sh
@Marcin Chrzaszcz Marcin Chrzaszcz on 31 Jan 2017 342 bytes large commit
  1. #!/bin/bash
  2. #FILES=*.pdf
  3. FILES="$(find . -name '*.pdf')"
  4. for f in $FILES
  5. do
  6. echo "Processing $f ..."
  7. gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dUseCIEColor -dPDFSETTINGS=/printer -dSAFER -dNOPAUSE -dQUIET -dBATCH -sOutputFile="temp.pdf" "$f"
  8. mv temp.pdf "$f"
  9. # pdf2ps "$f" temp.ps
  10. # ps2pdf temp.ps "$f"
  11. # rm temp.ps
  12. done
  13. #rm temp.pdf