Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 NReco PDF Lite(我在 .NET Core 项目中使用),如何使用密码保护 PDF?如果我不能使用 Lite,哪个版本可以在 .NET Core 上运行?
来自 NReco 支持:
wkhtmltopdf(由 NReco PdfGenerator 内部使用)本身无法生成受密码保护的 PDF,但可以使用 iTextSharp 库为生成的 PDF 文件添加加密(使用不需要商业许可的 LGPL 版本 4.1.6 就足够了)。这种方法在“EncryptPdf”示例(适用于商业用户)中进行了说明,它适用于“NReco.PdfGenerator”和“NReco.PdfGenerator.LT”版本。