DAGetObjectToString

Miscellaneous functions, Direct access functionality

Description

Returns the raw PDF object data for the specified object number. This is for advanced use only.

Syntax

Delphi

Function TPDFlib.DAGetObjectToString(FileHandle, ObjectNumber: Integer): AnsiString;

DLL

const char* DLDAGetObjectToString(int InstanceID, int FileHandle, int ObjectNumber);

Parameters

FileHandleA handle returned by the DAOpenFile, DAOpenFileReadOnly or DAOpenFromStream functions
ObjectNumberThe number of the object to retrieve. The first object is numbered 1 and the last object has an object number equal to the result of the GetObjectCount function.

Return values

Returns the raw object data. Returns an empty string when the file handle is invalid or the object number is not present.