wicked_pdf 或 wkhtmltopdf 可以生成受保护的 pdf 吗? [英] Can wicked_pdf or wkhtmltopdf generate a protected pdf?

查看:59
本文介绍了wicked_pdf 或 wkhtmltopdf 可以生成受保护的 pdf 吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以,我已经启动并运行了 wicked_pdf,现在我想知道我是否可以用密码保护正在生成的 pdf,这样它就不容易编辑了.这可能吗?也许更好的问题是 wkhtmltopdf 可以生成受保护的 pdf 吗?

So, I have wicked_pdf up and running, now I am wondering if I can password protect the pdf being generated so it is not easily editable. Is this possible? Perhaps a better question is can wkhtmltopdf generate a protected pdf?

如果没有,是否有很棒的 rails pdf gem 或类似的工具可以使用现有的 pdf 并保护它?

If not, is there a great rails pdf gem or similar that can take an existing pdf and protect it?

谢谢!

推荐答案

让我检查一下 wkhtmltopdf (v0.10.0 rc2) 的用法.

Let me check the usage for wkhtmltopdf (v0.10.0 rc2).

不,至少不是根据它的使用转储.wicked_pdf 只是包装 wkhtmltopdf,所以你运气不好.

Nope, at least not according to it's usage dump. And wicked_pdf just wraps wkhtmltopdf, so you're out of luck.

有许多 OSS PDF 项目可以在第二遍加密您的 PDF 输出.

There are any number of OSS PDF projects floating around out there that could encrypt your PDF output in a second pass.

这篇关于wicked_pdf 或 wkhtmltopdf 可以生成受保护的 pdf 吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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