Unplanned
Last Updated: 13 Apr 2018 13:38 by ADMIN
ADMIN
Peshito
Created on: 13 Apr 2018 13:31
Category: RichTextBox
Type: Bug Report
0
RichTextBox: Inserting image inline from stream changes its size dramatically to the size of a letter
Inserting image inline from stream changes its size dramatically.

Run the following code to reproduce:

            RadDocument document = new RadDocument();
            RadDocumentEditor editor = new RadDocumentEditor(document);
            //editor.Insert("some text");
            using (FileStream stream = File.OpenRead(@"C:\Temp\picture.jpg"))
            {
                editor.InsertImage(stream, ".png");
            }
            File.WriteAllBytes($@"d:\Temp\test\test_doc.pdf", new PdfFormatProvider().Export(document));

The issue is observable after 2017.2.614.
0 comments