PDFium Delphi Component Docs

SharePageObjectMark method

Component: TPdf  ·  Unit: PDFium
Shares one page object's native marked-content property dictionary with another

Syntax

function SharePageObjectMark(TargetIndex, SourceIndex, SourceMarkIndex: Integer): Boolean;

Description

SharePageObjectMark makes the page object at TargetIndex reuse the native property dictionary of mark SourceMarkIndex on the object at SourceIndex, rather than duplicating its parameters

It returns True when the native sharing call succeeded

Remarks

    • Shared marks keep one native dictionary, so a later SetPageObjectMarkParam on the source also affects the target
    • Use PageObjectMarks to enumerate the source marks before sharing

Example

if Pdf1.SharePageObjectMark(Target, Source, 0) then
  Pdf1.UpdatePage(1);

See Also