THotPDF.ApplyUnreachableObjectPolicy Method

Traverses the loaded graph from trailer roots and applies an explicit policy to indirect objects that cannot be reached

Declaration

function ApplyUnreachableObjectPolicy(
    Policy: THPDFUnreachableObjectPolicy;
    out AInfo: THPDFUnreachableObjectInfo): Integer;

Report mode returns stable object numbers without changing the document, while remove mode requests a full rewrite

Object Graph Editing and Page Assembly