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
  ColorSpaceObject: THPDFObject; // optional resolved /Resources/ColorSpace entry
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 /BPC
ColorSpaceFull colour space name such as DeviceGray, expanded from /CS
FilterFull filter pipeline name such as FlateDecode, expanded from /F; a filter array keeps its array text with every abbreviated name expanded, such as [/ASCIIHexDecode /DCTDecode]
DecodeParmsRaw token text of the decode parameters, expanded from /DP: a complete <<...>> dictionary, a [...] array aligned with the filters, or null; the VCL renderer parses it into the image's DecodeParms, so DCT ColorTransform applies as for image XObjects
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
ColorSpaceObjectWhere the renderer manages to resolve one, the resolved /Resources colour space entry behind the /CS name; nil when the name appears on its own

Usage notes

Related APIs