I'm using the HTMLFormatProvider to import HTML content into a RadFlowDocument. This content contains inline <svg> XML. When I use a PdfFormatProvider to attempt to export the HTML page as a PDF, the image is blank. Is it possible to export the SVG as part of that PDF when it is not a file but the actual SVG xml in the page?
string htmlContent = task.Result;
HtmlFormatProvider htmlProvider = new HtmlFormatProvider();
RadFlowDocument document = htmlProvider.Import(htmlContent);
PdfFormatProvider pdfProvider = new PdfFormatProvider();
Telerik.Windows.Documents.Extensibility.JpegImageConverterBase jpegImageConverter = new JpegImageConverter();
Telerik.Windows.Documents.Extensibility.FixedExtensibilityManager.JpegImageConverter = jpegImageConverter;
foreach(Section section in document.Sections)
{
section.Rotate(Telerik.Windows.Documents.Model.PageOrientation.Landscape);
section.PageMargins = new Telerik.Windows.Documents.Primitives.Padding(10);
}
byte[] pdfBytes = pdfProvider.Export(document);