Use Aspose.PDF in Xamarin Forms - License File Issue

Running Xamarin Forms with the code below in the app.xaml.cs file and the Aspose.Total.Lic file as an embedded resource in the project, and exception is generated. In XML of the license file there are illegal characters.

        Aspose.Pdf.License license = new Aspose.Pdf.License();
        license.SetLicense("Aspose.Total.Lic");

Exception thrown: ‘System.Xml.XmlException’ in Aspose.Pdf.dll
An exception of type ‘System.Xml.XmlException’ occurred in Aspose.Pdf.dll but was not handled in user code
An error occurred while parsing EntityName. Line 17, position 122.

@carnahb

Thanks for contacting support.

We regret to inform you that Xamarin Forms support is not yet available in the API. However, a feature request as PDFNET-47525 has already been logged in our issue tracking system for the sake of implementation. We have linked the ticket ID with this forum thread so that you will be notified once it is implemented. Please spare us little time.

We are sorry for the inconvenience.

I get the same error setting license on a WPF project. Please address the license issue.

Running WPF with the code below in the MainWindow.xaml.cs file and the Aspose.Total.Lic file as an embedded resource in the project, and exception is generated. In XML of the license file there are illegal characters.

        Aspose.Pdf.License license = new Aspose.Pdf.License();
        license.SetLicense("Aspose.Total.Lic");

Exception thrown: ‘System.Xml.XmlException’ in Aspose.Pdf.dll
An exception of type ‘System.Xml.XmlException’ occurred in Aspose.Pdf.dll but was not handled in user code
An error occurred while parsing EntityName. Line 17, position 122.

@carnahb

Would you kindly share a sample application which is able to replicate the issue in our environment. Please share it along with your license file in a private message. You can send a private message by clicking over username and pressing Blue Message button.