Usman Aziz April 25, 20190 Comments

Generate Image Preview of the Documents

Generate Image Preview of the Documents

April 25, 2019

Image previews are now commonly used to present your file/document to the users. It is quite useful when you want the users to quickly have a look at your document without downloading or opening it. As an example, MS Windows has this ability to provide the preview of the files in the preview pane of File Explorer without opening the document in the dedicated software program.

Did you ever desire to have the ability to generate image previews in your application? If yes then it is the time to embed this feature in your application with a few lines of code using GroupDocs.Metadata.

So, let’s have a look at how to generate image previews for the documents.

We have introduced PreviewHandler class in the GroupDocs.Metadata for .NET and Java to get the document pages in the form of images. Using PreviewHandler you can access and select the document page(s), either a single page or all pages, that you want to render as image. Below are the code snippets that generate the images of the pages in a Word document.

C#

Java

At the moment, we have launched this feature for the following documents:

  • PDF documents
  • Presentations
  • Spreadsheets
  • Word processing documents
  • Vision diagrams
  • OneNote documents
  • Images

Let’s not wait and try out this amazing feature by downloading the latest version of GroupDocs.Metadata for .NET and Java. You can explore and evaluate the API features by cloning/downloading the examples from the GitHub repository.

In case you would have any questions or suggestions, we would love to have a conversation with you on our forum.

Share on FacebookTweet about this on TwitterShare on LinkedIn
Posted inGroupDocs.Metadata Product FamilyTags: , , , , , , ,
 

Related Articles