aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.local/bin/svgtopdf
blob: f59bd98ddf2a144bfa8994ea76328046ec824665 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh

file=$(readlink -f "$1")
dir=$(dirname "$file")
base="${file%.*}"

cd "$dir" || exit

inkscape -z -D --file="$file" --export-pdf="$base.pdf"