Unplanned
Last Updated: 25 Mar 2022 09:45 by ADMIN
Peter
Created on: 08 Mar 2022 08:02
Type: Feature Request
7
Resize Picture while Export to PDF

While export/render a Report to PDF the pictures keep their original size, even when they are very big. Pictures scaled to a small image include the full-size image in PDF.
To keep the PDF smaller, all pictures needs to be resized in advance/by program at the moment.
Please implement the possibility (Activatable by Parameter) to automatically resize the images to the needed size
- for the used DPI settings in report
- or to a new added PictureDPI.

 

3 comments
ADMIN
Dimitar
Posted on: 25 Mar 2022 09:45

Hello Peter,

That is correct, the Standalone Designer cannot work with user function assemblies built against .NET Core.

We agree that having to build a special assembly for the Standalone Designer can increase the complexity of the development process. With that in mind and the cases where a smaller size PDF is needed/wanted, we have decided to approve the feature request.

The status of the item will now be Unplanned and whenever its status changes, such as when the feature is in development or released, you will receive a notification.

Thank you for using Telerik Reporting!

Regards,
Dimitar
Progress Telerik

Brand new Telerik Reporting course in Virtual Classroom - the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products. Check it out at https://learn.telerik.com/.
Peter
Posted on: 22 Mar 2022 07:00

Hello Dimitar

Thank you for your answer and your suggestion for a possible user function.
My project is .Net6  and the reports are designed in the standalone Designer.

According the linked page about the “User Function” it isn’t possible to use the standalone Designer together with .Net6 user functions.

So, I would have to provide a library in Standard 2.0 and overall, it makes the whole development and distribution process more difficult. As long as I don’t have the need for other user functions, I prefer not to increase complexity.

I still would prefer to have a parameter in PDF Creation for setting an automatic "Resize and Compression" of the Images.

But I agree too, that it should be possible to keep the original Image sizes for other cases of PDF usage.

For now, I decided to resize the pictures on Upload...
Kind regards

Peter

ADMIN
Dimitar
Posted on: 14 Mar 2022 16:52

Hello Peter,

We keep the original size of the images in order to retain the quality of the image when a user zooms in on the document.

With that being said, a User Function could be used to edit the size of the image of the PictureBox when the report is rendered to PDF. The Report item has a RenderingFormat global object and you may use it to pass the RenderingFormat.Name to your user function. This way your function will know when to resize the image and when to return them in their original size.

Regards,
Dimitar
Progress Telerik

Brand new Telerik Reporting course in Virtual Classroom - the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products. Check it out at https://learn.telerik.com/.