PDFium Delphi Component Docs

метод GenerateLayout

Компонент: TPdf  ·  Units: PDFium, FPdfLayout

Синтаксис

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

Описание

Измерва текста и пагинира всеки елемент, преди да промени дестинацията, след което добавя пълния план с нативните PDFium API за страници и странични обекти

TPdfLayoutDocument поддържа обвит текст, разделители, линии, изображения, многократно използваеми странични XObject-и, изрични прекъсвания на страници, заглавия, долни колонтитули, настройки на страниците, абзаци, които се държат заедно, и подравняване

Стабилни общи суми на страници

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

Резултат

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

Безопасност

An active signed destination is rejected unless AllowSignedDocument is set

The source passed to AddPageXObject must remain active until emission completes

Виж също

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