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

Free Support Forum - aspose.com

SVG to PDF failed


i try to convert a SVG (attached) to PDF, but it does not work.
Also if I tried it online (see Screenshot).

I tried it in the following way:
using (var document = new Aspose.Html.Dom.Svg.SVGDocument(FileToConvert))
// Initialize PdfSaveOptions.
var options = new Aspose.Html.Saving.PdfSaveOptions();

   // Convert HTML to PDF
   Aspose.Html.Converters.Converter.ConvertSVG(document, options, PdfOutputFileFull);


Kind Regards,

ErrorSvg.png (81.3 KB)
SVG_logo.zip (2.5 KB)


We were able to reproduce the issue in our environment while using Aspose.HTML for .NET 20.6. API threw System.NullReferenceException and this issue has been logged as HTMLNET-2720 in our issue tracking system. We will investigate the issue in detail and keep you posted with the status of its rectification. Please be patient and spare us some time.

We are sorry for the inconvenience.

1 Like


what means “closed”? Solved or not? :slight_smile:

Kind Regards,

The issues you have found earlier (filed as HTMLNET-2720) have been fixed in Aspose.HTML for .NET 20.7.