Convert PCL spool with greek characters to PDF Error

Hello,

I have installed Aspose.PDF version 20.10.0.0 from nugget package and I am trying to convert a PCL spool with Greek characters to pdf, but this error keeps on emerging
“System.Exception: ‘No data is available for encoding 813. For information on defining a custom encoding, see the documentation for the Encoding.RegisterProvider method.’”

I have tried to add System.Text.Encoding.RegisterProvider(System.Text.CodePagesEncodingProvider.Instance);
before, but nothing changes.

If I use loadoptions.SupressErrors = false; the resulting PDF has wrong characters instead of the Greek ones…

my code:

// Instantiate LoadOption object using PCL load option
PclLoadOptions loadoptions = new PclLoadOptions();
// Create Document object
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
loadoptions.ConversionEngine = PclLoadOptions.ConversionEngines.LegacyEngine;
loadoptions.SupressErrors = false;

Document doc = new Document(@“C:\Users\f.ntaskas\Desktop\TestAnsiSPL.spl”, loadoptions);
// Save the resultant PDF document
doc.Save(@“C:\Users\f.ntaskas\Desktop\TEST.pdf”);

Any help?

@fanis

Would you please share your sample source file with us in .zip format? We will test the scenario in our environment and address it accordingly.