summaryrefslogtreecommitdiff
path: root/pdfutils/fixpdf
blob: 96d9b217d2d9fd8cb5d36c8bcb4939e0daea9335 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

set -eu

[ "$#" -gt 0 ] || exit 1

for i in "$@"
do
	gs -dPDFSETTINGS=/prepress -o "$(basename "$i" .pdf).gs.pdf" -sDEVICE=pdfwrite "$i"
done