THotPDF.RegisterFormXObject

THotPDF

 

先頭

Registers reusable page-content as a PDF Form XObject and returns the resource name used by THPDFPage.DrawFormXObject.

 

Delphi syntax:

function RegisterFormXObject(BBoxLLx, BBoxLLy, BBoxURx, BBoxURy: Single; const Content: AnsiString): AnsiString;

function RegisterFormXObject(Width, Height: Single; const Content: AnsiString): AnsiString;

 

説明

この method は /FormType 1、supplied /BBox、identity matrix、minimal resource dictionary を持つ indirect /Type /XObject /Subtype /Form stream を作成します。返される name は document 内で stable であり、first draw 時に各 page の Resources/XObject dictionary に追加されます

stamps、repeated vector groups、logos、および一度定義して異なる positions、scales、rotations で何度も paint するべきその他の content に使用します