Created
September 4, 2014 14:49
-
-
Save clemsos/42a06c1da6e1145e5d04 to your computer and use it in GitHub Desktop.
PDF Multiple pages to clean SVG using Inkscape
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
PDF_IN="LS58_Presentation_FR_EN.pdf" | |
BASENAME_OUT="junkware" | |
PAGE_START=2 | |
PAGE_END=2 | |
for ((i=$PAGE_START; i<=$PAGE_END; i++)); | |
do | |
# echo $i; | |
pdf_outfile="${i}_${BASENAME_OUT}.pdf" | |
echo $pdf_outfile | |
svg_outfile="${i}_${BASENAME_OUT}.svg" | |
echo $svg_outfile | |
`pdftk ${IN} cat ${i} output ${pdf_outfile}` | |
`inkscape --without-gui --file=${pdf_outfile} --export-plain-svg=${svg_outfile}` | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
on debian :
./