ImageInline resolution/size

2 posts, 0 answers
  1. Knut
    Knut avatar
    1 posts
    Member since:
    Feb 2013

    Posted 06 Feb 2013 Link to this post

    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;

    }

  2. Kammen
    Admin
    Kammen avatar
    312 posts

    Posted 08 Feb 2013 Link to this post

    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.

  3. DevCraft banner
Back to Top