THotPDF.DAAppendObjectSource Method
Appends a raw PDF object source code string to a file opened via Direct Access mode.
Declaration
function DAAppendObjectSource(FileHandle: Integer; const ObjectSource: AnsiString): Integer;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
FileHandle | Handle to the direct-access file |
ObjectSource | Source string of the PDF object to append |
Return values
The operation result, typically returning 1 for success and 0 for failure.
Usage
- Call: THotPDF.DAAppendObjectSource
- Used when incrementally writing custom objects to a PDF file in Direct Access mode.
- Loaded-document object references may be indirect; resolve arrays, dictionaries or streams before inspecting nested values