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

Free Support Forum - aspose.com

Creating Thumbnails

I need to create thumbnails of various document formats, perhaps even being able to select which page of the document to use as the thumbnail and save it as a png/jpg. What products do I need for that and how would it be done? Thanks.


Could you specify which document formats you plan to support?

Just the common desktop formats - Excel, Word, Powerpoint, PDF. We already have a thumbnailing process for images and video.


Please see

PPT: http://www.aspose.com/documentation/file-format-components/aspose.slides-for-.net-and-java/aspose.slides.slide.getthumbnail_overloads.html

DOC: http://www.aspose.com/documentation/file-format-components/aspose.words-for-.net-and-java/aspose.words.viewer.documentrenderer.html

PDF: http://www.aspose.com/documentation/file-format-components/aspose.pdf.kit-for-.net-and-java/extract-image-from-pdf-document.html

XLS: You may need to convert it to PDF and extract image from PDF as described above. For conversion, please see http://www.aspose.com/documentation/file-format-components/aspose.cells-for-.net-and-java/converting-to-pdf-file.html

Hi Vitaly,

I want to create thumbnails for XLS files. I observed that conversion of a big (more than 750KB size) XLS file to first XML, then PDF and then to a thumbnail image is a time-consuming process. Once the thumbnail is created, and when I try to delete the intermediate files (XML and PDF), then PDF file doesnt get deleted at times. May be the call pdf.save(filename) works in the background and hence the file deletion fails.

Can you please suggest:

1. Way to create a thumbnail image only for first worksheet in the XLS file,

2. Stop/cancel the pdf.save(filename) call, so that the file deletion can be done successfully

3. Is there any direct way to create a thumbnail for XLS file.




Well, I think you may try to hide all the worksheets other than the first worksheet (see the document for reference: http://www.aspose.com/documentation/java-components/aspose.cells-for-java/hide-or-unhide-a-worksheet.html) and then convert the xls to pdf format for your need.

Currently you have to use Aspose.Cells for Java and Aspose.Pdf for Java versions for xls to Pdf conversion. However in our upcoming version (which is due in the next 2-3 days), we will provide the direct conversion approach where you don’t depend on Aspose.Pdf for Java to use the intermediate steps for xls to pdf conversion anymore. The next version will independently and directly convert the Excel file to Pdf format.

Thanks for your understanding!

Hi Amjad,

Thanks for the quick response.
Your solution of hiding other worksheets except for the first one sounds good. But in case my excel sheet has single and huge worksheet, this solution will still take time.
My aim is to create a thumbnail, that can be a small image of the file’s first page (if the file is printed).
And also, is there a way to stop/cancel the pdf file creation from xml file for xls, so that deletion of the file is successful always.


<w:LatentStyles DefLockedState=“false” LatentStyleCount=“156”>
<![endif]–><!–[if gte mso 10]>

/* Style Definitions */ table.MsoNormalTable {mso-style-name:"Обычная таблица"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;}


<span style=“font-size: 12pt; line-height: 115%; font-family: “Times New Roman”;” lang=“EN-US”>Try 3D Thumbnail Generator to create impressive
3D thumbnails. http://www.softorbits.com/3d-thumbnail-generator

Hi Suprita,

We have supported Direct Excel to PDF conversion feature.

For further information, see the document (check the “Direct Conversion” sub topic) now:

Thank you.