THPDFHeadlessAppearancePlacement Record

One prebuilt text appearance placed at an explicit position and scale while a composite appearance is assembled

THPDFHeadlessAppearancePlacement = record
  Bundle: THPDFHeadlessTextAppearance;
  X, Y, Width, Height, ScaleX, ScaleY: Double;
  Fill, Stroke: Boolean;
  FillColor, StrokeColor: array[0..2] of Double;
  StrokeWidth: Double;
  SeparateStrokeWidths: Boolean;
  StrokeWidths: array[0..3] of Double;
end;

The unit is HPDFHeadlessAppearance; Bundle is the borrowed source appearance, so the caller has to keep it alive until composition returns

X and Y place the bundle in the target coordinate space, Width and Height define its box, and ScaleX and ScaleY scale it independently inside that box

Fill and Stroke select which channels are painted, FillColor and StrokeColor supply RGB components in the 0 to 1 range, and StrokeWidth sets the uniform border width

With SeparateStrokeWidths set, StrokeWidths supplies the bottom, left, top and right widths in that order

Hand an array of placements to HPDFComposeHeadlessAppearanceWithWorkspace or to its non-workspace counterpart