PdfImageMetadata class final
Source-level metadata for a single image object in a PDF page.
These values come directly from the FPDF_IMAGEOBJ_METADATA struct and
describe the image as stored in the PDF (before any transforms are applied).
The rendered output may differ in dimensions — see PdfImage.bitmapWidth
and PdfImage.bitmapHeight.
markedContentId links the image to the document's structure tree for
alt-text lookup via fpdf_structtree.h. A value of -1 means no
marked-content identifier is present.
Constructors
- PdfImageMetadata({required int width, required int height, required double horizontalDpi, required double verticalDpi, required int bitsPerPixel, required PdfColorspace colorspace, required int markedContentId})
-
Creates an immutable PdfImageMetadata.
const
Properties
- bitsPerPixel → int
-
Bits per pixel of the source image data (e.g. 1, 8, 24).
final
- colorspace → PdfColorspace
-
The colorspace of the source image data.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- height → int
-
Source pixel height of the image as stored in the PDF.
final
- horizontalDpi → double
-
Horizontal resolution in dots per inch.
final
- markedContentId → int
-
The marked-content identifier linking this image to the structure tree,
or
-1if the image has no marked-content entry.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- verticalDpi → double
-
Vertical resolution in dots per inch.
final
- width → int
-
Source pixel width of the image as stored in the PDF.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override