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.
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
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!
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]>
<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
We have supported Direct Excel to PDF conversion feature.
For further information, see the document (check the “Direct Conversion” sub topic) now: