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

NamePurpose
FileHandleHandle to the direct-access file
ObjectNumberNumber of the PDF object to read

Return values

The original source code string of the object; returns an empty string if not found.

Usage

See also