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

Free Support Forum - aspose.com

Converting HTML having complex SVG to PDF using Aspose.PDF

Facing issue while converting HTML containing SVG to PDF
Code snippet i am using:
MemoryStream objMemoryStream = new MemoryStream(Encoding.UTF8.GetBytes(File.ReadAllText(“text.html”)));
Document objPDFDocument = new Document(objMemoryStream, objHtmlLoadOptions);

Test test.zip (4.2 KB) HTML file is attached

Could anyone please guide me, if i am missing anything.


We noticed that API threw a System.ArgumentException while converting your HTML to PDF with 20.6 version. Therefore, an issue has been logged as PDFNET-48494 in our issue tracking system for the sake of correction. We will investigate the ticket in details and keep you informed about its rectification status. Please be patient and spare us some time.

We are sorry for the inconvenience.

The issues you have found earlier (filed as PDFNET-48494) have been fixed in Aspose.PDF for .NET 21.7.