This is a migrated thread and some comments may be shown as answers.

ImageInline resolution/size

1 Answer 70 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Knut
Top achievements
Rank 1
Knut asked on 06 Feb 2013, 10:11 AM

We are currently evaluating Telerik in order to use RadDocuments to create/save pdf-documents, and we have encountered an issue with the size of the pdf documents we make (size on disc). The reason for this is some ImageInlines we need to insert to the document. Is there a way to set the resolution to ImageInline in the code (runtime) to shrink the size of the images?

The InlineImages we insert to the document are charts. We first convert the chart to a WriteableBitmap, and then we convert it to an ImageInline. After that we insert the image to a table before we insert it to a section and then to the RadDocument. This is a Silverlight Project and we have tested and found out that the ImageInlines are the reason of the large document-size. If we insert four charts (Converted to ImageInlines) to the RadDocument and export the document to PDF, the document-size is 3 mb, and we will have a lot more charts when we go live with this. Is there a way to shrink the size of the ImageInlines?

The code to convert the chart to ImageInline:

private ImageInline getImageInline(Chart myChart)

{

    WriteableBitmap wbitMyChart = new WriteableBitmap(myChart, null);

    wbitMyChart.Invalidate();

 

    ImageInline myImageInline = new ImageInline(wbitMyChart);

 

    return myImageInline;

}

1 Answer, 1 is accepted

Sort by
0
Kammen
Telerik team
answered on 08 Feb 2013, 03:51 PM
Hello Knut,

In the current version, there is no way to shrink the images in order to create a smaller document. We have it in our to do list, but it has not been scheduled yet, so it is not clear if and when it will be implemented.

Kind regards,
Kammen
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
RichTextBox
Asked by
Knut
Top achievements
Rank 1
Answers by
Kammen
Telerik team
Share this question
or