PDFium Delphi Component Docs

מתודת GenerateLayout

Component: TPdf  ·  Units: PDFium, FPdfLayout

Syntax

function GenerateLayout(Layout: TPdfLayoutDocument; out Plan: TPdfLayoutPlan; AllowSignedDocument: Boolean = False): Boolean;

Description

מודד טקסט ומחלק לעמודים כל פריט לפני שינוי היעד, ואז מצרף את התוכנית המלאה עם API העמוד ואובייקט העמוד המקוריים של PDFium

TPdfLayoutDocument תומך בטקסט עטוף, מרווחים, קווים, תמונות, XObject עמוד ניתנים לשימוש חוזר, מעברי עמוד מפורשים, כותרות עליונות, כותרות תחתונות, הגדרות עמוד, פסקאות שמירה-יחד ויישור

Stable page totals

Use {page} and {pages} in text, headers, or footers

The measure pass reserves ReservedPageDigits widest-digit placeholders, so final page numbers cannot change wrapping or page count during emission

Result

Plan reports final pages, commands, measured text calls, content counts, and page-reference counts

The destination is unchanged when measuring fails or when any append operation fails

Safety

An active signed destination is rejected unless AllowSignedDocument is set

The source passed to AddPageXObject must remain active until emission completes

See Also

GenerateTaggedLayout, Cached layout nodes, AddPage, AddText, AddImage, CreateXObjectFromPage