TPDFlibDynamicComponent

Data types, page layout, pagination

Description

Defines cloneable drawing logic and mutable pagination state for transactional page-by-page composition

The session composes on a working clone and commits that clone only after the captured Form XObject has been validated and placed

Declaration

type
  TPDFlibDynamicComponent = class
  public
    function CloneComponent: TPDFlibDynamicComponent; virtual; abstract;
    function Compose(const Context: TPDFlibDynamicPageContext;
      out ComposeResult: TPDFlibDynamicPageResult): Integer; virtual; abstract;
  end;

Methods

CloneComponentReturns a caller-independent copy of all mutable pagination state
ComposeDraws one fragment in local coordinates and reports its used bounds and continuation state

Contract

Compose shall draw through Context.LibraryInstance without changing documents, pages or nested drawing containers Return

1 for a valid result and 0 to reject the attempt without committing component or destination state

See also

TPDFlibDynamicComponentSession, TPDFlibDynamicPageContext, TPDFlibDynamicPageResult