如何将pdftk添加到Heroku Cedar应用程序? [英] How to add pdftk to Heroku Cedar app?

查看:121
本文介绍了如何将pdftk添加到Heroku Cedar应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在我的Heroku Cedar Rails应用程序中将多个PDF文件合并为一个,并已使用pdftk完成此操作。



我失去了如何做到这一点。我认为最好的方法是创建一个自定义的buildpack,其中包含一个编译后的pdftk二进制文件,但我无法弄清楚如何让Vulcan来做到这一点。



如果没有Vulcan,有没有办法做到这一点?是否有一个预先存在的ruby buildpack,包括我可以使用的pdftk?解析方案

我现在有这个工作,并且使用pdftk的自定义Heroku Ruby buildpack的公开版本位于:
https://github.com / millie / heroku-buildpack-ruby-pdftk



请务必阅读README中的说明。



Heroku的Cedar堆栈的预编译版本pdftk可在此处获得:
https://github.com/millie/ pdftk-source



希望这可以为别人节省一些麻烦!


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!

这篇关于如何将pdftk添加到Heroku Cedar应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆