esp32_bluetooth_classic_sni.../docs/prepare_figures.sh
Matheus Eduardo Garbelini c1fc3f84e3 Step 1 Update
2021-09-06 09:45:23 +08:00

13 lines
No EOL
282 B
Bash
Executable file

#!/usr/bin/env bash
# Go to script directory path
cd "$(dirname "$(readlink -f "${BASH_SOURCE}")")"
for f in ./*.pdf
do
echo "-------------------------"
echo "Applying pdfcrop to $f"
./pdfcrop.pl --margins 0 $f $f > /dev/null
echo "Exporting $f to svg"
pdf2svg $f $f.svg
done