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

Pdf document recently split with iTextSharp

Watermarked when an error is encountered:

'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


We need to add in NuGet in System.Text.Encoding.CodePages

image


And then under the program are registered on it

Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);


iTextSharp or good use

Pdf picture or just can not turn generate thumbnails ...

Guess you like

Origin www.cnblogs.com/sun8134/p/11423388.html