|
THotPDF.RegisterFormXObject
|
顶部 |
|
Registers reusable page-content as a PDF Form XObject and returns the resource name used by THPDFPage.DrawFormXObject.
Delphi 语法: function RegisterFormXObject(BBoxLLx, BBoxLLy, BBoxURx, BBoxURy: Single; const Content: AnsiString): AnsiString; function RegisterFormXObject(Width, Height: Single; const Content: AnsiString): AnsiString;
说明 该方法创建一个间接 /Type /XObject /Subtype /Form stream,包含 /FormType 1、提供的 /BBox、identity matrix 和最小 resource dictionary。返回名称在文档内稳定,并会在首次绘制时添加到每个页面的 Resources/XObject 字典 该方法适合 stamps、重复 vector groups、logos,以及其他应定义一次并在不同位置、缩放或旋转下多次绘制的内容
|