DocumentPreviewCache Class |
Namespace: pdftron.PDF
public sealed class DocumentPreviewCache : DependencyObject
The DocumentPreviewCache type exposes the following members.
Name | Description | |
---|---|---|
DocumentPreviewCache | Initializes a new instance of the DocumentPreviewCache class |
Name | Description | |
---|---|---|
Dispatcher | (Inherited from DependencyObject.) |
Name | Description | |
---|---|---|
CancelAllRequests |
CancelAllRequests cancels all pending requests.
The PreviewHandler of each pending request will signal that the preview could not be found.
| |
CancelRequest |
CancelRequest cancels all pending thumbnail requests associated with 'filepath_or_uuid'.
If the cancel request is processed earlier than the path of the thumbnail could be retrieved
the respective request will be cancelled and the PreviewHandler will signal that the thumb could not be found.
| |
ClearCache |
Remove the cache from the disk completely, deleting any thumbnails. You may want to do this if you detect some kind
of corruption, or if the user wants to clear out disk space used by your application.
| |
ClearValue | (Inherited from DependencyObject.) | |
CreateBitmapWithID(String, PDFDoc, Int32, Int32, Object) |
createBitmapWithID gets the path to the thumbnail in the DocumentPreviewCache associated with the document with 'uuid'.
This method should be used together with getBitmapWithID.
The decision if the thumb should be re-rendered is based on two factors.
First if the current version fulfills the minimal dimensions 'min_x_size' x 'min_y_size' and
second if the size of the pdf document hasn't changed. To signal an edit of the pdf document without
a resulting re-rendering of the thumb see IrrelevantChangeMade.
| |
CreateBitmapWithID(String, StorageFile, Int32, Int32, Object) |
createBitmapWithID gets the path to the thumbnail in the DocumentPreviewCache associated with the document with 'uuid'.
This method should be used together with getBitmapWithID.
The decision if the thumb should be re-rendered is based on two factors.
First if the current version fulfills the minimal dimensions 'min_x_size' x 'min_y_size' and
second if the size of the pdf document hasn't changed. To signal an edit of the pdf document without
a resulting re-rendering of the thumb see IrrelevantChangeMade.
| |
CreateBitmapWithID(String, IRandomAccessStream, Int32, Int32, Object) |
createBitmapWithID gets the path to the thumbnail in the DocumentPreviewCache associated with the document with 'uuid'.
This method should be used together with getBitmapWithID.
The decision if the thumb should be re-rendered is based on two factors.
First if the current version fulfills the minimal dimensions 'min_x_size' x 'min_y_size' and
second if the size of the pdf document hasn't changed. To signal an edit of the pdf document without
a resulting re-rendering of the thumb see IrrelevantChangeMade.
| |
Equals | (Inherited from Object.) | |
GetAnimationBaseValue | (Inherited from DependencyObject.) | |
GetBitmapWithID |
getBitmapWithID gets the path to the thumbnail in the DocumentPreviewCache associated with the document with 'uuid'.
This method should be used together with createBitmapWithID.
The decision if the thumb should be re-rendered is based on two factors.
First if the current version fulfills the minimal dimensions 'min_x_size' x 'min_y_size' and
second if the size of the pdf document hasn't changed. To signal an edit of the pdf document without
a resulting re-rendering of the thumb see IrrelevantChangeMade.
| |
GetBitmapWithPath |
getBitmapWithPath gets the path to the thumbnail in the DocumentPreviewCache associated with the document at 'filepath'.
The decision if the thumb should be re-rendered is based on two factors.
First if the current version fulfills the minimal dimensions 'min_x_size' x 'min_y_size' and
second if the size of the pdf document hasn't changed. To signal an edit of the pdf document without
a resulting re-rendering of the thumb see IrrelevantChangeMade.
| |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetValue | (Inherited from DependencyObject.) | |
Initialize |
Initialize the preview cache. If the cache already exists, it will
shrink to conform to these limits immediately.
| |
IrrelevantChangeMade |
IrrelevantChangeMade should be called if the size of the pdf file at 'filepath' was changed but the thumbnail
should not be re-generated. This should be done when no editing was done on the first page of the document.
| |
ReadLocalValue | (Inherited from DependencyObject.) | |
RegisterPropertyChangedCallback | (Inherited from DependencyObject.) | |
SetValue | (Inherited from DependencyObject.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
UnregisterPropertyChangedCallback | (Inherited from DependencyObject.) |
Name | Description | |
---|---|---|
DocumentPreviewCacheResponse |
Event used to get responses from the DocumentPreviewCache
|