Generate image of first page.
I would like to know if there is a way to extract a image that is the first page of the pdf file so i can use it as a preview on the tile.

Hi Ric,
Thank you for using syncfusion product.
Yes we can export the images using SfPdfViewer Control. We have created the sample which exports first page of the PDF document as the image by using the following code snippet:
pdfViewerControl1.LoadDocument(ldoc);
Image page = pdfViewerControl1.GetPage(0);
Also please find the sample from the below link,
http://www.syncfusion.com/downloads/support/forum/119907/ze/PDFViewerWintRT_2013-1492323365
In this sample, the first five pages of the document will export as images if we clicked the Exported first page.
Please let us know if you need further assistance.
Thanks,
Balasubramanian
is there any change that works with doc files too using SfRichTextBoxAdv ?
Hi Ric,
Thank you for your update,
Regarding “SfRichTextBoxAdv”
Using SfRichTextBoxAdv control you can retrieve the pages as bitmap image. For Your reference we have prepared a sample to illustrate your requirement to get first page in SfRichTextBoxAdv control as bitmap image. Please do find the sample from below link.
Sample link:
Sample
Regarding “PdfViewer”
Yes, In PdfViewer Control we can load only one document at a time. So if one wants to get the first page of the 15 documents they need to load all those documents separately in PdfViewer Control.
Please let us know if you have any other questions.
Regards,
Narendran
Thank you for your update,
The support for retrieving page in SfRichTextBoxAdv control as bitmap image is not available with Essential Studio version 13.1.0.21. We have added this support and included in our Essential Studio version 13.2.0.29 service pack 1 and is available for download under the following link.
http://www.syncfusion.com/forums/119866/essential-studio-2015-volume-2-service-pack-release-v13-2-0-34-available-for-download
Please let us know if you have any other questions.
Regards,
Narendran
- 6 Replies
- 3 Participants
-
RS Ric Silva
- Aug 12, 2015 03:02 PM UTC
- Aug 17, 2015 08:50 AM UTC