Is it possible to programmatically “chain” several PDF files, preferably from command line?

前端 未结 8 914
别那么骄傲
别那么骄傲 2020-12-30 15:02

Is there a way, in Linux, Windows, or preferably Mac OS X to take a bunch of PDF files and \"chain them\" into one \"booklet\" without owning Acrobat and preferably without

相关标签:
8条回答
  • 2020-12-30 15:46

    I have tried several different tools and have gotten the most reliable results with the PDF toolkit, pdftk. It seems to work more consistently than trying to use gs or messing around with conversion to PostScript and back. And it avoids dealing with one image per page, which is a nuisance.

    pdftk is included in Debian-based Linux distributions and perhaps others as well.

    0 讨论(0)
  • 2020-12-30 15:50

    ghostcript method:

    gs -q -sPAPERSIZE=letter -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=out.pdf in1.pdf in2.pdf in3.pdf ...
    

    from: How to concatenate PDFs without pain

    ImageMagick method:

    convert file1.pdf file2.pdf file3.pdf out.pdf
    

    pdftk method:

    pdftk file1.pdf file2.pdf file3.pdf cat output out.pdf
    
    0 讨论(0)
  • 2020-12-30 15:50

    You can chain the "Get selected Items", "Combine PDF Pages", "Rename PDF Document" and "Move Finder Items" actions in Automator to create the desired workflow.

    0 讨论(0)
  • 2020-12-30 15:53

    If you want something cross-platform I suggest this: http://pybrary.net/pyPdf/

    0 讨论(0)
  • 2020-12-30 15:57

    I have also used Multivalent Java based tools. It is a simple invocation of Java MultiValent main program passing in each pdf file you want to append as arguments.

    0 讨论(0)
  • 2020-12-30 15:59

    Have a look at Multivalent Document Tools

    Failing that you can search out other tools via Freshmeat.net

    0 讨论(0)
提交回复
热议问题