Can wicked_pdf or wkhtmltopdf generate a protected pdf?

自闭症网瘾萝莉.ら 提交于 2019-12-13 20:49:21

问题


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?

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

Thanks!


回答1:


Let me check the usage for 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.

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



来源:https://stackoverflow.com/questions/5751277/can-wicked-pdf-or-wkhtmltopdf-generate-a-protected-pdf

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!