mirror of
https://github.com/NotXia/unibo-ai-notes.git
synced 2025-12-15 02:52:22 +01:00
Fix cropped pdfs <noupdate>
This commit is contained in:
7
utils/cropped_pdfs.sh
Normal file
7
utils/cropped_pdfs.sh
Normal 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
|
||||
Reference in New Issue
Block a user