How to add pdftk to Heroku Cedar app?

前端 未结 4 2029
不思量自难忘°
不思量自难忘° 2021-02-01 10:06

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 bes

4条回答
  •  有刺的猬
    2021-02-01 10:33

    This is how i setup pdftk in nodejs app in heroku
    1- Create heroku app
    heroku create
    2- Set buildpack for pdftk
    BUILDPACK_URL=https://github.com/ddollar/heroku-buildpack-apt
    3- Set buildpack for nodejs
    heroku buildpacks:add --index 1 heroku/nodejs
    4 - Add the libgcj.so.* to your search path:
    heroku config:set LD_LIBRARY_PATH=/app/bin
    5- Turn on at least one dyno
    heroku ps:scale web=1
    6- Create a Procfile in the root of your project and define the following:
    web: node server.js
    5- Push changes in heroku
    git push heroku master

提交回复
热议问题