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 Reverse Proxy

RouterOS 從 7.22 版,新增了 Reverse Proxy 功能, SNI 填入域名 IP Address 填入 Server IP,通常是內部 IP,但也可以導到外部 Port 填入內部 Server HTTP 服務 Port Certificate 選擇對應的...