ImageSource imageSource = new ImageSource(new MemoryStream(this.ConvertWmfImageToPng(stream)));document.Pages.AddPage().Content.AddImage(imageSource);...private byte[] ConvertWmfImageToPng(Stream wmfImageStream){ byte[] pngBytes; using (MemoryStream pngImageStream = new MemoryStream()) { System.Drawing.Image imageDrawing = System.Drawing.Image.FromStream(wmfImageStream); imageDrawing.Save(pngImageStream, System.Drawing.Imaging.ImageFormat.Png); pngBytes = pngImageStream.ToArray(); } return pngBytes;}Hello Telerik,
Last time we attempted this the <Viewbox> contents would not render and were empty upon xaml to pdf output. It would be great if you had this feature and we could move completely away from raster output to PDF for controls that contain Viewboxes. Otherwise we have really liked the PDF's created by the tool, the vector output is sharp as expected.
Thank you,
Patrick
When the document contains Simple Font with predefined encoding and no ToUnicode mapping the text should be extracted with the following algorithm:
Currently, the PdfProcessing library doesn't map the character code properly which leads to wrongly encoded text content.
An InvalidCastException is thrown when importing documents containing outlines with an invalid destination set:
The exception:
System.InvalidCastException: 'Unable to cast object of type 'Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Types.PdfReal' to type 'Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Types.PdfName'.'