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

Render current page as bitmap

2 Answers 65 Views
PDFViewer
This is a migrated thread and some comments may be shown as answers.
Mi
Top achievements
Rank 1
Mi asked on 09 May 2013, 10:44 PM
Hi!

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

Thanks!

2 Answers, 1 is accepted

Sort by
0
Accepted
Kammen
Telerik team
answered on 14 May 2013, 08:27 AM
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.

0
Mi
Top achievements
Rank 1
answered on 17 May 2013, 10:59 AM
Thank you! This was exactly what I needed.
Tags
PDFViewer
Asked by
Mi
Top achievements
Rank 1
Answers by
Kammen
Telerik team
Mi
Top achievements
Rank 1
Share this question
or