THotPDF.DAGetObjectSource Method
Extracts the original source code string for a PDF object from a file in direct access mode based on its object number.
Declaration
function DAGetObjectSource(FileHandle: Integer; ObjectNumber: Integer): AnsiString;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
FileHandle | Handle to the direct-access file |
ObjectNumber | Number of the PDF object to read |
Return values
The original source code string of the object; returns an empty string if not found.
Usage
- Call: THotPDF.DAGetObjectSource
- Called when needing to analyse or modify the underlying data structures of existing objects in direct access mode.