Free Support Forum - aspose.com

SVG to PDF failed

Hi,

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,
Andy

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

@AStelzner

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

Hello,

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

Kind Regards,
Andy

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