We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Convert PCL spool with greek characters to PDF Error


I have installed Aspose.PDF version 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
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

Any help?


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.