getThumbnailImage Method

Summary

Gets a thumbnail representation of this page.

Syntax
TypeScript
JavaScript
DocumentPage.prototype.getThumbnailImage = function() 
getThumbnailImage(): string; 

Return Value

URL to an image that represents the thumbnail of this page.

Remarks

This method will be deprecated. Use GetThumbnailImageUrl instead.

This method uses the value set in DocumentImages.ThumbnailPixelSize to determine the size of the thumbnail image. The returned image data will have 24 bits per pixel.

This method works as follows (the "item" is a thumbnail image with the specified size):

  1. If an item was found in the cache, it is returned right away.

  2. GetImageUrl is used to create the thumbnail image.

  3. The image object is saved to the cache before it is returned. Next time this method is called, the image will be returned from the cache directly without loading it from the file or creating a new instance.

DocumentImages.GetThumbnailsGridUrl can be used to return the thumbnails of more than one page using a single call.

The LEADTOOLS Document Viewer uses DocumentPage.GetThumbnailImageUrl and DocumentImages.GetThumbnailsGridUrl for generating the thumbnails list of a document.

Refer to Loading Using LEADTOOLS Document Library for more information.

Requirements

Target Platforms

Help Version 23.0.2024.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Document Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.