THotPDF.DAReplaceObjectSource Method
Provides the DAReplaceObjectSource behavior for the document creation workflow. Use it when the surrounding API family needs explicit control over PDF objects, page content, resources, conformance, or diagnostics
Declaration
function DAReplaceObjectSource(FileHandle: Integer; ObjectNumber: Integer; const ObjectSource: AnsiString): Integer;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
FileHandle | Input used by DAReplaceObjectSource |
ObjectNumber | Input used by DAReplaceObjectSource |
ObjectSource | Input used by DAReplaceObjectSource |
Return value
Returns an Integer value
Usage notes
- Use this API in the document creation workflow before the affected page, resource, field, or catalog object is finalized
- Keep object names, field names, resource names, and returned handles stable until the document is finalized