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.
Values
- embedded → const PdfThumbnailSource
-
Decoded from an embedded
/Thumbstream in the PDF page dictionary.Not all PDFs contain embedded thumbnails. Modern tools like
pdflatexand many web-based PDF creators do not produce/Thumbstreams. 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
maxDimensionbecause no embedded thumbnail was present.The rendered thumbnail is produced by the same rendering engine as PdfDocument.renderPageToBytes. On high-DPI displays, multiply
maxDimensionby 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.