CloneCurrentComponent

Document parts, variable data, document editing

Description

Returns a caller-owned clone of the current committed component snapshot of a TPDFlibDynamicComponentSession

Syntax

Function TPDFlibDynamicComponentSession.CloneCurrentComponent:
  TPDFlibDynamicComponent;

Remarks

The clone reflects only committed state, because rejected attempts and pending retries never replace the current snapshot

Reading component state through the clone does not disturb the session, and freeing the clone does not affect further composition

The method never invokes the component drawing callback and does not change documents, pages or the composition counter

Return values

New cloneAn independent copy of the current committed snapshot; the caller owns the instance and must free it
NilNo current snapshot is stored or its CloneComponent returned Nil

See also

TPDFlibDynamicComponentSession, TPDFlibDynamicComponent, CloneComponent, CompositionCount, ComposeNextLayout