SVG is not showing up in PDF


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 not properly converted to PDF Landscape (C#) - #2 by Farhan.Raza (2.4 KB)


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 (223.6 KB)


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.

The issues you have found earlier (filed as HTMLNET-2258) have been fixed in this update. This message was posted using Bugs notification tool by avpavlysh