I would like to convert Svg stream to Pdf using ABCPdf in C#. The stream I receive contains the XML of the Svg. I am using Doc.AddImageHtml method provided by ABCPdf. Since I am getting only XML from the stream, I am prefixing and suffixing the html and body tags to it to make it a HTML. I am using the following Code for that :
Doc abcPdfDoc = new Doc();
XmlDocument xDocument = new XmlDocument();
xDocument.Load(stream);
abcPdfDoc.AddImageHtml("<html><body>" + xDocument.InnerXml + "</html></body>");
abcPdfDoc.Save(@"MyPdf.pdf");
abcPdfDoc.Clear();
The issue is that the tables in my SVG are not retained. The output in my PDF a running text without tables.(Rect to be specific)
Any pointers on what can be done to retain the format or a better way to achieve the same using ABCPdf?