We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

How to get Pdf the first page thumbnail

How to get Pdf the first page thumbnail

Hi there,

Thanks for your interest in Aspose. You can convert PDF to thumbnail images by using PdfConverter class that converts each page of Pdf file to specific image type with desired size. Please find a sample code snippet and also check the related documentation here for more information. Hopefully it would serve the purpose.


PdfConverter converter = new PdfConverter();

converter.BindPdf(@"C:\test\out.pdf");

String prefix = @"C:\test\thumbnail";

String suffix = ".jpg";

int imgCount = 1;

converter.StartPage = 1;

converter.EndPage = 1;

while (converter.HasNextImage())

{

converter.GetNextImage(prefix + suffix, System.Drawing.Imaging.ImageFormat.Jpeg, 50, 50, 100);

}


Please feel free to contact us for any further assistance.

Best Regards,

Hi Xu,


We are glad to hear that your requirement is accomplished. Please continue using our API and in the event of any further query, please feel free to contact.