SVG is not showing up in PDF


#1

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)


#2

@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);