Ghostscript 三種 PDF 壓縮預設實測:哪種檔案會變小,哪種反而變大?
I ran three PDFs through Ghostscript's /screen, /ebook and /printer presets. Here's what happened to each.
重點導讀
PDF 壓縮後不一定會變小,還可能讓純文字檔變大。
- 維護開源轉檔工具 KuickKonvert 的作者,用 Ghostscript 10.02.1 的 /screen、/ebook 和 /printer 預設測試三份 PDF,並公開測試檔和重現結果的程式碼。照片用 /ebook 從 1,096.3 KB 降到 58.3 KB,掃描檔則只有 /screen 明顯縮小。
- 五頁純文字檔用 /printer 後反而變成原本的兩倍多。作者的工具會檢查輸出頁數和檔案大小,若結果沒有比較小,就把原檔交還給使用者。測試檔數量不多,其他檔案和 Ghostscript 版本可能會有不同結果。
AI 伴隨問答
針對這篇報導有疑問?可直接點選快捷問題或向 AI 追問背景脈絡與技術細節:
信源出處dev.to
I ran three PDFs through Ghostscript's /screen, /ebook and /printer presets. Here's what happened to each.
本文為 888news 精選之重點導讀。若需閱讀作者完整原文、技術細節與官方討論,請前往原始網站。
來源: Dev.to Top Tech (dev.to)
開啟原文