4月 19, 2022

PDF 命令列工具

一些 PDF 檔案操作的指令工具:

cpdf-binaries

  • Quality Split and Merge, keeping bookmarks. Extract pages. Split on Bookmarks.
  • Scale, rotate, crop and flip pages. Scale pages to fit.
  • 旋轉 cpdf -rotate-contents 90 in.pdf -o out.pdf
  • 合併 cpdf -merge in.pdf in2.pdf -o out.pdf
  • 分割 cpdf -split in.pdf -o Chunk%%.pdf -chunk 10
  • a commandline utility to search text in PDF files
  • 列印前十行 pdfgrep -n --max-count 10 pattern foo.pdf
  • 遞迴找檔 pdfgrep -r --include "foo*.pdf" pattern

沒有留言:

張貼留言