THPDFHeadlessAppearancePlacement Record

One prebuilt text appearance placed at an explicit position and scale when 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 and the caller keeps 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 apply independent scaling within that box

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

When SeparateStrokeWidths is true, StrokeWidths supplies the bottom, left, top, and right widths in that order

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