scripts/bin/pdftosvg
Alexander Gehrke cefd40b6dc Initial commit
2019-09-30 14:49:14 +02:00

8 lines
208 B
Bash
Executable file

#!/bin/zsh
for i in "$@"; do
inkscape --without-gui --file=$i --export-plain-svg=/dev/stdout \
| tr -d '\n' \
| sed -e 's!</\?tspan[^>]*>!!g' \
| xmllint --compress /dev/stdin --output ${i:r}.svg
done