How can I merge PDF files with Perl?

前端 未结 3 369
予麋鹿
予麋鹿 2021-01-17 22:58

Using Perl, how can I combine or merge the sample PDF files into a single PDF file?

3条回答
  •  心在旅途
    2021-01-17 23:39

    Why do you need to do it from Perl? Chris has already mentioned CAM::PDF.

    If you just need to merge them, pdftk (PDF ToolKit) works just fine. It's a simple command line:

    pdftk file1.pdf file2.pdf cat output merged.pdf
    

提交回复
热议问题