CPDFPageThumbnailSource class

Describes where a thumbnail should be rendered from.

Constructors

CPDFPageThumbnailSource.document(CPDFDocument document, {Object? cacheVersion})
Uses an existing CPDFDocument. The document is not closed by the provider.
const
CPDFPageThumbnailSource.file(String filePath, {String password = ''})
Opens filePath for rendering and closes it after each render.
const

Properties

cacheVersion Object?
Optional version for invalidating thumbnails from an already open document.
final
document CPDFDocument?
Existing document source, when available.
no setter
filePath String?
File path source, when available.
no setter
hashCode int
The hash code for this object.
no setterinherited
isDocument bool
Whether this source wraps an existing document.
no setter
isFile bool
Whether this source opens a file path.
no setter
password String
Password used when filePath is opened.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

describe() Future<String>
Returns a short description for debug logs.
describeSync() String
Returns a short description without touching the file system.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolveScope() Future<String>
Returns a stable scope for cache key generation.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited