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;

 

תיאור

המתודה יוצרת stream indirect מסוג /Type /XObject /Subtype /Form עם /FormType 1, ‏/BBox שסופק, identity matrix ומילון resource מינימלי. השם המוחזר יציב בתוך המסמך ומתווסף למילון Resources/XObject של כל עמוד בציור הראשון

השתמש בכך עבור stamps, קבוצות וקטוריות חוזרות, logos ותוכן אחר שצריך להיות מוגדר פעם אחת ולהיצבע פעמים רבות במיקומים, scales או rotations שונים