mirror of
https://github.com/NotXia/unibo-ai-notes.git
synced 2025-12-14 18:51:52 +01:00
7 lines
358 B
Bash
7 lines
358 B
Bash
# 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 -dUseCropBox -o "$pdf" /tmp/ai_notes_cropped_pdf_processing.pdf
|
|
done |