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

Free Support Forum - aspose.com

SVG to PDF: With Base 64 image

I have a SVG file with image in it. I am not allowed to upload SVG file directly here. So uploading the set6.svg.xml (XML format). On converting SVG to PDF, I don’t see the image in PDF.


Request File: set6.svg
Created PDF file: set6.pdf

Here is my code C#:

// Instantiate SvgLoadOptions object using SVG load option
Aspose.Pdf.SvgLoadOptions loadopt = new Aspose.Pdf.SvgLoadOptions
{
};
loadopt.ConversionEngine = Aspose.Pdf.SvgLoadOptions.ConversionEngines.NewEngine;

// Create Document object
Aspose.Pdf.Document doc = new Aspose.Pdf.Document(@“my path…set6.svg”, loadopt);

// Save the resultant PDF document
doc.Save(@“my path.set6.pdf”);

Hi Merwan,

Thanks for your inquiry. I have tested your scenario with shared SVG document using Aspose.Pdf for .NET 11.0.0 and managed to observe the reported image missing issue. For further investigation, I have logged an issue in our issue tracking system as PDFNEWNET-39941 and also linked your request to it. We will keep you updated via this thread regarding the issue status.

We are sorry for the inconvenience caused.

Best Regards,

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