chg: [tools] convert.sh adds support for PDF output

master
Alexandre Dulaunoy 2019-02-23 14:38:36 +01:00
parent 513abc840b
commit db7eb91c8f
No known key found for this signature in database
GPG Key ID: 09E2CD4944E6CBCD
1 changed files with 4 additions and 0 deletions

View File

@ -5,9 +5,13 @@ createsvg() {
local svg
for d in ../ai/*.ai; do
svg=$(echo "$d" | sed 's/.ai/.svg/')
pdf=$(echo "$d" | sed 's/.ai/.pdf/')
output=$(echo "$svg" | sed 's/...//' | sed 's/\.ai/.svg/')
output_pdf=$(echo "$pdf" | sed 's/...//' | sed 's/\.ai/.pdf/')
echo "Convert AI to SVG $output ..."
inkscape --export-text-to-path -f "$d" -l "../$output"
echo "Convert AI to PDF $output_pdf ..."
inkscape --export-text-to-path -f "$d" -A "../$output_pdf"
done
}