Wednesday, 10 June 2026

Convert PDF lebih dari 2MB menjadi maksimal 2MB

 find . -maxdepth 1 -name "*.pdf" -size +2M -print0 |
while IFS= read -r -d '' f; do
echo "Memproses: $f"

gs \
-sDEVICE=pdfwrite \
-dCompatibilityLevel=1.4 \
-dPDFSETTINGS=/screen \
-dNOPAUSE \
-dQUIET \
-dBATCH \
-sOutputFile="${f%.pdf}-2mb.pdf" \
"$f"
done



Share:

0 comments:

Post a Comment