Unplanned
Last Updated: 02 Jun 2021 14:58 by ADMIN
Martin
Created on: 02 Jun 2021 14:44
Category: PDFViewer
Type: Bug Report
0
PdfViewer: Inserting PNG ImageSource leads to a wrong image rendering

Inserting PNG ImageSource into a document and applying the document instance directly to the RadPdfViewer`s Document property (without exporting to stream) leads to a wrong image rendering.

Workaround: Export the document with the PdfFormatProvider:

MemoryStream ms = new MemoryStream();
PdfFormatProvider pdfFormatProvider = new PdfFormatProvider();
pdfFormatProvider.Export(radFixedDocument, ms);

PdfDocumentSource source = new PdfDocumentSource(ms, pdfViewer.DefaultImportSettings);
this.pdfViewer.DocumentSource = source;

0 comments