How do you combine PDFs in ruby?

前端 未结 8 2126
你的背包
你的背包 2020-12-25 15:17

This was asked in 2008. Hopefully there\'s a better answer now.

How can you combine PDFs in ruby?

I\'m using the pdf-stamper gem to fill out a form in a PDF.

8条回答
  •  太阳男子
    2020-12-25 15:48

    Use ghostscript to combine PDFs:

     options = "-q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite"
     system "gs #{options} -sOutputFile=result.pdf file1.pdf file2.pdf"
    

提交回复
热议问题