PDFium Delphi Component Docs

Image property

Component: TPdf  ·  Unit: PDFium
Indexed property — returns one decoded image object on the current page (dimensions, pixel data, DPI, bit depth, color space, ICC profile)

Syntax

property Image[Index: Integer]: TPdfImage; // read only

Description

Indexed read-only property that returns one decoded image object on the current page (Width, Height, Data, RawData, Filters, HorizontalDpi, VerticalDpi, BitsPerPixel, ColorSpace, MarkedContentId, and IccProfile)

Requires Active to be True. Pass a zero-based image index in 0 .. ImageCount - 1

The returned TPdfImage record is a caller-owned snapshot of the image data and metadata at the time of the call

Parameters

IndexZero-based index in the range 0 .. ImageCount - 1

Remarks

Example

var
  I: Integer;
begin
  if not Pdf1.Active then Exit;
  for I := 0 to Pdf1.ImageCount - 1 do
  begin
    // inspect Pdf1.Image[I]
    Memo1.Lines.Add(IntToStr(I));
  end;
end;

See Also

ImageCount, BitmapCount, ObjectHandle