esp32_bluetooth_classic_sni.../docs/prepare_figures.sh

13 lines
282 B
Bash
Raw Permalink Normal View History

2021-09-06 01:45:23 +00:00
#!/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