THotPDF.BeginFormXObject Method

方法摘要: THotPDF.BeginFormXObject Method

声明

function BeginFormXObject(BBoxLLx, BBoxLLy, BBoxURx, BBoxURy: Single): THPDFFormXObjectBuilder;

Usage

Call builder methods inherited from THPDFContentBuilder, then call EndForm to register the content and receive the form resource name

Draw the returned resource with THPDFPage.DrawFormXObject

Builder := PDF.BeginFormXObject(0, 0, 80, 50);
try
  Builder.SetFillRGB(0.2, 0.45, 0.8);
  Builder.DrawRectangle(0, 0, 80, 50);
  Builder.Fill;
  FormName := Builder.EndForm;
finally
  Builder.Free;
end;

相关 API