Click or drag to resize

PDFViewCtrlThumbnailRequestHandler Class

Helper class that allows the equivalent of PDFViewCtrl.GetThumbAsync(int pageNumber) but without being forced to the captured Context of the PDFViewCtrl. When a thumbnail is requested using this class, the OnThumbnailGenerated in a secondary thread.
Inheritance Hierarchy
SystemObject
  pdftron.PDFPDFViewCtrlThumbnailRequestHandler

Namespace:  pdftron.PDF
Assembly:  pdftron (in pdftron.dll) Version: 255.255.255.255
Syntax
public sealed class PDFViewCtrlThumbnailRequestHandler : IClosable

The PDFViewCtrlThumbnailRequestHandler type exposes the following members.

Methods
  NameDescription
Public methodClose
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetThumbAsync
This will request a thumbnail for the page given by pageNum. When the thumbnail is ready, the OnThumbnailGenerated event will be raised with the finished thumbnail. If multiple requests are made, the thumbnail requests will be processed starting with the last request. The exception is that the current thumbnail being rendered will always finish. It is recommended to cancel all thumbnail requests once they are not needed any more, using PDFViewCtrl.CancelAllThumbRequests(); If caching is enabled, this request will be much faster once the thumb has been rendered once. You can enable caching by using pdftron.PDFNet.SetViewerCache and pdftron.PDFNet.SetDefaultDiskCachingEnabled(true);
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Events
  NameDescription
Public eventOnThumbnailGenerated
Occurs when a thumbnail that was requested though GetThumbAsync(int pageNum) is ready. See GetThumbAsync(int pageNum) for more information.
Top
See Also