THotPDF.DAReplaceObjectSource Method
Replaces the source code of a specific object in direct access mode.
Declaration
function DAReplaceObjectSource(FileHandle: Integer; ObjectNumber: Integer; const ObjectSource: AnsiString): Integer;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
FileHandle | Handle index of the open file |
ObjectNumber | Number of the object to replace |
ObjectSource | New source string for the object |
Return values
Returns the operation status code, returns a valid numerical value upon success.
Usage
- Call: THotPDF.DAReplaceObjectSource
- Used to directly overwrite or append new object definitions when modifying a PDF at a low level.