Create a thumbnail

Can you tell me if any of the Aspose products will create a thumbnail image of the first page of a PDF?


This message was posted using Support 2 Forum

Advanced Features

  • Supports converting PDF pages into images

Hi,


Thank you for considering Aspose.


I am not sure that I have understand your requirements completely. But what I understand is that you have a Pdf document and you want that it should create a thumbnal image of the pages and when you open that modified Pdf document in the Adobe Reader then you can see the thumbnails on the left Pan?

About the other i.e conversion of Pdf pages to Image as Sander said. Please refer to:

http://www.aspose.com/Wiki/default.aspx/Aspose.Pdf.Kit/PdfConverter.html

If I misunderstood, then could you please elaborate your requirements.

Thanks.

Hi,

Thanks for your response and sorry for any confusion I've created.

I require the first page of a PDF to be converted to an image (gif or jpg). Is this possible and do you have a solution?

Thanks.

Hi,

Here is the code.

[ C# ]

PdfConverter converter = new PdfConverter();
converter.BindPdf(@“D:\Test\test.pdf”);
converter.DoConvert();
String prefix = @“D:\Test”;
String suffix = “.png”;
int imageCount = 1;
converter.GetNextImage(prefix + imageCount + suffix, ImageFormat.Png);

If you need more help, please do let us knew.

Thanks.