Render current page as bitmap

3 posts, 1 answers
  1. Mi
    Mi avatar
    16 posts
    Member since:
    Apr 2011

    Posted 09 May 2013 Link to this post

    Hi!

    Is it possible to render the current page of PDFViewer as a bitmap?

    Thanks!
  2. Answer
    Kammen
    Admin
    Kammen avatar
    312 posts

    Posted 14 May 2013 Link to this post

    Hi,
    Since Q1, SP1 (2013.1 403) there is a class called ThumbnailFactory that can be used to create ImageSource from a given page. Here is sample code that demonstrates how this can be done:
    ThumbnailFactory tf = new ThumbnailFactory();
    tf.CreateThumbnail(page, new Size(page.ActualWidth, page.ActualHeight));

    Hope this answers your question.

    Regards,

    Kammen
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. Mi
    Mi avatar
    16 posts
    Member since:
    Apr 2011

    Posted 17 May 2013 Link to this post

    Thank you! This was exactly what I needed.
Back to Top