简体   繁体   English

wicked_pdf或wkhtmltopdf可以生成受保护的pdf吗?

[英]Can wicked_pdf or wkhtmltopdf generate a protected 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. 因此,我已经启动并运行了wicked_pdf,现在我想知道是否可以通过密码保护正在生成的pdf,以使其难以编辑。 Is this possible? 这可能吗? Perhaps a better question is can wkhtmltopdf generate a protected pdf? 也许更好的问题是wkhtmltopdf可以生成受保护的pdf吗?

If not, is there a great rails pdf gem or similar that can take an existing pdf and protect it? 如果没有,是否有可以使用现有pdf并加以保护的出色的rails pdf gem?

Thanks! 谢谢!

Let me check the usage for wkhtmltopdf (v0.10.0 rc2). 让我检查一下wkhtmltopdf(v0.10.0 rc2)的用法。

Nope, at least not according to it's usage dump. 不,至少不是根据使用情况转储。 And wicked_pdf just wraps wkhtmltopdf, so you're out of luck. 而wicked_pdf只包装wkhtmltopdf,所以您很不走运。

There are any number of OSS PDF projects floating around out there that could encrypt your PDF output in a second pass. 周围有许多OSS PDF项目可以在第二遍加密您的PDF输出。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM