Is it possible to change the size of the thumbnails from code behind?
1 Answer, 1 is accepted
0
Martin
Telerik team
answered on 17 Oct 2019, 02:29 PM
Hi Joe,
If I understand you correctly, you are trying to change the size of the thumbnails in the Page Thumbnails section of the RadPdfViewer. We have a good example in our GitHub repository for how to customize the look of RadPdfViewer by adding thumbnail functionality and especially for your case how to set a custom size of the thumbnails using the ThumbnailsConverter class.
In case you are using the PDFViewer`s API for exporting a PDF document page to an image, you can set the thumbnail size when you are Exporting the FIxed Page to Image:
ThumbnailFactory thumbnailFactory = new ThumbnailFactory();
ImageSource imageSource = thumbnailFactory.CreateThumbnail(radFixedPageInstance, new Size(150, 250));
If none of these cases is yours, it would be helpful if you can share more information about the requirements and the expected results.
Regards,
Martin
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers.Learn More.