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 - Dictionary, array, lifecycle and stream-length helpers notify the transaction automatically
- During an active transaction, an object outside the indexed loaded graph raises
EInvalidOpException