Statically compile pdftk for Heroku. Need to split PDF into single page files

后端 未结 5 1005
滥情空心
滥情空心 2021-02-15 12:57

So we\'re using heroku to host our rails application. We\'ve moved to the cedar stack. This stack does not have the pdftk library installed. I contacted support and was told to

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-15 13:21

    Unfortunately Heroku keeps stripping out magic to add flexibility. As a result it feels more and more like the days when I used to manage and maintain my own servers. There is no easy solution. My "monkey patch" is to send the file to a server that I can install PDFTK, process the file, and send it back. Not great, but it works. Having to deal with this defeats the purpose of using heroku.

提交回复
热议问题