Free Support Forum - aspose.com

SVG is not showing up in PDF

HI,

I am having a problem with showing SVG image in PDF. I have generated a HTML body and it is working fine in Chrome Browser, but when try to generate PDF with the SVG image (Paths & Polygon), it is not working. I have attached the HTML code along with this mail. Please Let me know.

In case : HTML to PDF Landscape conversion fails

html.zip (2.4 KB)

@gayan1991

Thank you for contacting support.

We have been able to reproduce the issue with below code snippet. A ticket with ID HTMLNET-2258 has been logged in our issue management system for further investigation and resolution.

// Source HTML document  
HTMLDocument htmlDocument = new HTMLDocument(dataDir + "Layout1.html");
// Initialize PdfSaveOptions 
PdfSaveOptions options = new PdfSaveOptions();
// Output file path 
string outputPDF = dataDir + "HTMLtoPDF_Output.pdf";
// Convert HTML to PDF
Converter.ConvertHTML(htmlDocument, options, outputPDF);

@Farhan.Raza I still have the issue and I changed the image from SVG to png not the image is not that clear. Its bit blur. Please tell me how you compress images

image.zip (223.6 KB)

@gayan1991

The issue persists as the ticket has not been resolved yet. We have recorded your comments and will let you know once any update will be available in this regard.