2022年6月24日 星期五

PDF compress in Linux with gs

gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/prepress -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output-ebook.pdf input.pdf
基本上這樣就可以把 PDF 檔壓到很小

-dPDFSETTINGS=/screen 可以壓到最小,但解析度很差

需要 ghostscript 套件

ref. PDF compress in Linux with command line utilities

沒有留言:

RouterOS Adlist

RouterOS 7.15 版開始,DNS 支援 Adlist,可用 URL 直接載入 hosts,實現類似 Pi-Hole 的功能 預設的 cache-size 2048K 不夠大, 載入時超出限制 Log 中會出現 [adlist] adlist read: max cach...