Hi
I´m migratting an app from .net 4.8 using winforms to .net 6 using winui
I have a pice of code for merge pdf files that works greath on .net 4.8 but on .net 6 fails
Fail message is
Mensaje = No data is available for encoding 1252. For information on defining a custom encoding, see the documentation for the Encoding.RegisterProvider method.
it trigger when i call outputdocument.close()
Solution: Seems that add this line before add any page makes it work
Code:
System.Text.Encoding.RegisterProvider(System.Text.CodePagesEncodingProvider.Instance);