projects
/
Misc
/
ipe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e65ef29
)
Fix pdftoipe
author
Lukas Barth
<lukas.barth@kit.edu>
Thu, 15 Aug 2019 12:42:31 +0000
(14:42 +0200)
committer
Lukas Barth
<lukas.barth@kit.edu>
Thu, 15 Aug 2019 12:42:31 +0000
(14:42 +0200)
tools/pdftoipe.sh
patch
|
blob
|
history
diff --git
a/tools/pdftoipe.sh
b/tools/pdftoipe.sh
index 5dc732b975c421d1703a7dc66af5f52bed18d49c..ac9a281073bfa18d8f9d18a006064212c13122f1 100755
(executable)
--- a/
tools/pdftoipe.sh
+++ b/
tools/pdftoipe.sh
@@
-1,5
+1,10
@@
# !/bin/bash
echo $1
-inkscape --verb=ObjectToPath --select=EditSelectAll --export-plain-svg=/tmp/$1.svg $1
-./svgtoipe.py /tmp/$1.svg $2
-rm /tmp/$1.svg
+
+TMPFILE=`mktemp`
+TMPFILE="${TMPFILE}.svg"
+
+inkscape --verb=EditSelectAll --verb=ObjectToPath --export-plain-svg=$TMPFILE $1
+./svgtoipe.py $TMPFILE $2
+#rm $TMPFILE
+