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

沒有留言:

scp remote to remote

有 3 台主機 HostA、HostB、HostC 在 HostC 下 scp 指令要從 HostA 複製檔案到 HostB,都透過 Key auth 預設情況下 (沒有加參數 -3) HostC 對 HostA 要建 Key,HostA 對 hostB 要建 Key 資料流是直...