THotPDF.PrepareLoadedObjectForWrite Method
Prepares a loaded PDF object for a mutation that cannot be observed automatically
Declaration
procedure PrepareLoadedObjectForWrite(Obj: THPDFObject);
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
Obj | Loaded object or descendant whose enclosing indirect root will be snapshotted and marked dirty |
Return value
This procedure does not return a value
Usage notes
- Call this method before changing public scalar
Valuefields or writing directly to raw stream storage - Snapshot preparation preserves stream payload bytes and restores the source position, with stream-copy buffering outside recursive graph frames; excessive object nesting still raises the existing guard rather than increasing the depth limit
- Dictionary, array, lifecycle and stream-length helpers notify the transaction automatically
- During an active transaction, an object outside the indexed loaded graph raises
EInvalidOpException