PdfThumbnailSource enum

Whether a PdfThumbnail came from an embedded stream or was rendered.

Embedded thumbnails are smaller than rendered ones (typically 64–256 px) and are returned at their native size. Rendered thumbnails are produced on demand by the rendering engine at the caller-controlled maxDimension.

Inheritance
Available extensions

Values

embedded → const PdfThumbnailSource

Decoded from an embedded /Thumb stream in the PDF page dictionary.

Not all PDFs contain embedded thumbnails. Modern tools like pdflatex and many web-based PDF creators do not produce /Thumb streams. When a thumbnail is embedded, PdfDocument.getThumbnail returns it at its native dimensions without any scaling.

rendered → const PdfThumbnailSource

Rendered from the page content at PdfDocument.getThumbnail's maxDimension because no embedded thumbnail was present.

The rendered thumbnail is produced by the same rendering engine as PdfDocument.renderPageToBytes. On high-DPI displays, multiply maxDimension by the device pixel ratio before calling to obtain a retina-sharp result.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Constants

values → const List<PdfThumbnailSource>
A constant List of the values in this enum, in order of their declaration.