I need to merge multiple PDF files into one in my Heroku Cedar Rails app, and have settled upon using pdftk to do this.
I'm lost as to how to do this. I think the best approach would be to create a custom buildpack that includes a compiled binary for pdftk but I can't quite figure out how to get Vulcan to do this.
Is there a way to do this without Vulcan? Is there a pre-existing ruby buildpack that includes pdftk that I can use?
I've got this working now, and a publicly available version of a custom Heroku Ruby buildpack with pdftk is here: https://github.com/millie/heroku-buildpack-ruby-pdftk
Be sure to see the instructions in the README.
Precompiled version of pdftk for Heroku's Cedar stack is available here: https://github.com/millie/pdftk-source
Hope this saves someone else some trouble!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With