aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.local/bin/svgtopdf
blob: e97e7e68ab20698fb6a81ae4a1cacb9ab1fdfc33 (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 "$file" -D --export-type=pdf --export-filename="$base.pdf"