PdfRasterDiskFormat enum
Serialized representation of a full-resolution page raster on disk.
Neither choice dominates - see the encoding measurements in
test/benchmark_full_raster_disk_test.dart and the summary in
doc/dev-log/2026-07-29-persistent-full-raster-disk-tier.md:
- png is 3-15x smaller on vector/CAD and form pages (large flat areas compress hard), so far more pages fit a given byte budget - at the cost of a real encode on the store path and a real decode on the load path.
- rawRgba is
width * height * 4bytes with no compression work at all. On photo/scan pages, where PNG barely compresses, it is both smaller in CPU and competitive in size, and its decode is a straight buffer upload.
png is the default because the byte budget, not the CPU, is what usually bounds how much of a document survives to the next session.
Values
- png → const PdfRasterDiskFormat
-
Lossless PNG via ui.ImageByteFormat.png.
- rawRgba → const PdfRasterDiskFormat
-
Uncompressed premultiplied RGBA via ui.ImageByteFormat.rawRgba.
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<
PdfRasterDiskFormat> - A constant List of the values in this enum, in order of their declaration.