最近用 iTextSharp 拆分 Pdf 文档windows
加水印的时候遇到错误:ide
'windows-1252' is not a supported encoding name. For information on defining a custom encoding, see the documentation for the Encoding.RegisterProvider method.
Parameter name: namecode
须要在 NuGet 里添加 System.Text.Encoding.CodePagesorm
而后在程序里注册下就能够了blog
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
iTextSharp 仍是很好用的图片
就是不能 Pdf 转图片或生成缩略图…文档