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

PDFViewer Thumbnail Size

1 Answer 143 Views
PDFViewer
This is a migrated thread and some comments may be shown as answers.
Joe Bohen
Top achievements
Rank 1
Joe Bohen asked on 14 Oct 2019, 06:35 PM
Is it possible to change the size of the thumbnails from code behind?

1 Answer, 1 is accepted

Sort by
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

<converters:ThumbnailsConverter x:Key="ThumbnailsConverter" ThumbnailsHeight="100" />

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.
Tags
PDFViewer
Asked by
Joe Bohen
Top achievements
Rank 1
Answers by
Martin
Telerik team
Share this question
or