THotPDF.RegisterFormXObject

THotPDF

 

맨 위

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;

 

설명

이 method는 /FormType 1, 제공된 /BBox, identity matrix, minimal resource dictionary를 가진 indirect /Type /XObject /Subtype /Form stream을 만듭니다. 반환된 name은 document 안에서 stable하며 first draw 시 각 page의 Resources/XObject dictionary에 추가됩니다

한 번 정의한 뒤 다른 position, scale 또는 rotation으로 여러 번 paint해야 하는 stamp, repeated vector group, logo 및 기타 content에 사용하십시오