THPDFInlineImgKeys Record

Holds the normalized 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 color component, expanded from /BPC
ColorSpaceFull color space name such as DeviceGray, expanded 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, from /IM
DecodeRaw token text of the decode array, such as [1 0], from /D; empty when absent. The renderer uses it to paint an image mask with /D [1 0] where the samples are 1
HasWidthTrue when /W was supplied in the BI dictionary
HasHeightTrue when /H was supplied
HasBPCTrue when /BPC was supplied

Usage notes

Related APIs