Fix cropped pdfs <noupdate>

This commit is contained in:
2024-03-29 11:01:58 +01:00
parent e52baa32f7
commit 400dfd1e20
122 changed files with 7 additions and 0 deletions

7
utils/cropped_pdfs.sh Normal file
View File

@ -0,0 +1,7 @@
# Rewrites pdfs to remove the content outside the crop-box.
git ls-files --others --modified --exclude-standard `git rev-parse --show-toplevel`/*.pdf | while read -r pdf ; do
echo "Rewriting $pdf"
mv "$pdf" /tmp/ai_notes_cropped_pdf_processing.pdf
gs -dQUIET -sDEVICE=pdfwrite -o "$pdf" /tmp/ai_notes_cropped_pdf_processing.pdf
done