简体   繁体   English

NReco PDF(Lite)和密码保护

[英]NReco PDF (Lite) and password protect

Using NReco PDF Lite (which I am using in a .NET Core project), how do I secure the PDF with a password? 使用NReco PDF Lite(我在.NET Core项目中正在使用),如何使用密码保护PDF? If I cannot use Lite, which version and will it work on .NET Core? 如果我不能使用Lite,哪个版本可以在.NET Core上使用?

From NReco support: 从NReco支持:

wkhtmltopdf (which is internally used by NReco PdfGenerator) cannot produce password protected PDFs itself, but it is possible to add encryption to the produced PDF file with iTextSharp library (it is enough to use LGPL version 4.1.6 that doesn't require commercial license). wkhtmltopdf(NReco PdfGenerator内部使用)本身无法生成受密码保护的PDF,但是可以使用iTextSharp库将加密添加到生成的PDF文件中(使用不需要商业许可的LGPL 4.1.6版就足够了)。 This approach is illustrated in the "EncryptPdf" example (available for commercial users) and it works both for "NReco.PdfGenerator" and "NReco.PdfGenerator.LT" versions. 此方法在“ EncryptPdf”示例(适用于商业用户)中进行了说明,并且适用于“ NReco.PdfGenerator”和“ NReco.PdfGenerator.LT”版本。

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

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