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;
}