最近用 iTextSharp 拆分 Pdf 文档

加水印的时候遇到错误:

'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: name


需要在 NuGet 里添加 System.Text.Encoding.CodePages

.Net Core 遇到 “'windows-1252' is not a supported encoding name.”


然后在程序里注册下就可以了

Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);


iTextSharp 还是很好用的

就是不能 Pdf 转图片或生成缩略图…

相关文章:

  • 2021-08-30
  • 2021-11-14
  • 2022-12-23
  • 2022-12-23
  • 2021-12-01
  • 2021-12-27
  • 2021-06-17
猜你喜欢
  • 2022-12-23
  • 2021-12-08
  • 2022-01-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案