THPDFInlineImgKeys Record

Holds the normalised key/value set of an inline image with abbreviations already expanded to full dictionary names

Declaration

THPDFInlineImgKeys= record
  Width: Integer;             // /W  -> /Width
  Height: Integer;            // /H  -> /Height
  BitsPerComponent: Integer;  // /BPC -> /BitsPerComponent
  ColorSpace: AnsiString;     // /CS -> /ColorSpace, full name (DeviceGray..)
  Filter: AnsiString;         // /F  -> /Filter, full pipeline name (FlateDecode..)
  DecodeParms: AnsiString;    // /DP -> /DecodeParms, raw token text if present
  ImageMask: Boolean;         // /IM -> /ImageMask
  Decode: AnsiString;         // /D  -> /Decode, raw array text if present
  HasWidth: Boolean;          // whether /W was supplied
  HasHeight: Boolean;         // whether /H was supplied
  HasBPC: Boolean;            // whether /BPC was supplied
end;

Unit

HPDFContentStream

Fields

FieldPurpose
WidthImage width in pixels, expanded from /W
HeightImage height in pixels, expanded from /H
BitsPerComponentBits per colour component, expanded from the /BPC abbreviation
ColorSpaceFull colour space name such as DeviceGray, built out from /CS
FilterFull filter pipeline name such as FlateDecode, expanded from /F
DecodeParmsRaw token text of the decode parameters, expanded from /DP
ImageMaskTrue when the inline image is an image mask, per /IM
DecodeRaw token text of the decode array, such as [1 0], taken from /D; empty when absent. The renderer uses it to paint an image mask carrying /D [1 0] wherever the samples are 1
HasWidthTrue when /W was given in the BI dictionary
HasHeightTrue when /H was supplied
HasBPCTrue when /BPC was supplied

Usage notes

Related APIs