PDFViewer Thumbnail Size

2 posts, 0 answers
  1. Joe Bohen
    Joe Bohen avatar
    71 posts
    Member since:
    May 2009

    Posted 14 Oct 2019 Link to this post

    Is it possible to change the size of the thumbnails from code behind?
  2. Martin
    Martin avatar
    83 posts

    Posted 17 Oct 2019 Link to this post

    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.

    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.
Back to Top