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;

 

Περιγραφή

Η μέθοδος δημιουργεί indirect /Type /XObject /Subtype /Form stream με /FormType 1, το παρεχόμενο /BBox, identity matrix και minimal resource dictionary. Το returned name είναι σταθερό μέσα στο document και προστίθεται στο Resources/XObject dictionary κάθε σελίδας στο πρώτο draw

Χρησιμοποιήστε το για stamps, repeated vector groups, logos και άλλο content που πρέπει να ορίζεται μία φορά και να ζωγραφίζεται πολλές φορές σε διαφορετικές θέσεις, κλίμακες ή περιστροφές