THPDFDirectFileState Record

Active, Indexed, TrailerDirty, and UseXRefStream are the state flags, with FileName and HeaderLine identifying the underlying file

PageCount and MaxObjectNumber describe the document shape, whilst the HasRoot / RootLink, HasInfo / InfoLink, and HasEncrypt / EncryptLink pairs record trailer references

Xref with Boundaries and BoundaryCount track cross-reference entries and revision boundaries

ReplacementObjects and ReplacementCount stage object bodies that supersede the on-disk sources