PDFtk Server on OS X 10.11

后端 未结 10 1103
长发绾君心
长发绾君心 2020-11-29 14:43

I\'ve been using PDFTK Server on OSX pre 10.11 for over a year without any issues running commands on the command line.

After installing OS

10条回答
  •  迷失自我
    2020-11-29 15:42

    Third Edit: The following are not fixes, but rather workarounds, (`cuz sometimes its not feasible to wait months for fixes to arrive).


    Second Edit: Coherent PDF Command Line Tools (aka cpdf) is free for noncommercial use, and can be licensed for commercial use. It provides functionality comparable to pdtk and (on my MacBook Pro at least) seems to run OK under El Capitan.


    Edit: This StackOverflow answer tells how to use ghostscript to concatenate files, thus providing (awkwardly) functionality similar to of "pdftk ... cat output out.pdf".


    For some purposes, the package ghostscript---which ships with LaTeX distributions like texlive---offers similar (but less user-friendly) capability to pdftk.

    E.g., to extract pages 6-7 from a multipage pdf document:

    gs -sDEVICE=pdfwrite -dNOPAUSE -dBATCH -dSAFER \
      -dFirstPage=6 -dLastPage=7 \
      "-sOutputFile="${EXTRACTED_FILENAME_HERE}" \
      "${SOURCE_FILENAME_HERE}" ;
    

    The above worked for me ... your mileage may vary!

    Needless to say, restoring pdftk to full functionality under El Capitan would be much better ... pdftk really is a terrific utility.

提交回复
热议问题