GetObjectPathNumberA

Document properties, Content extraction

Description

The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to GetObjectPathNumber and string arguments are interpreted using the current SetAnsiMode code page

Resolves an object path such as pages[0]/MediaBox[2] and returns the numeric leaf as a double, with a flag telling whether the leaf was found and numeric

Syntax

Delphi

Function DLGetObjectPathNumberA(InstanceID: Integer; Path: PAnsiChar; Var Found: Integer): Double;

DLL

double DLGetObjectPathNumberA(int InstanceID, const char* Path, int Var Found);

Parameters

PathObject path in the syntax accepted by GetObjectByPath
FoundTrue when the resolved leaf is a number

Return values

The numeric value; 0 with Found False when the path is missing or not numeric

Remarks

Page dictionary lookups inherit attributes such as MediaBox or Resources from the /Parent pages nodes when the page itself does not carry them

See also

GetObjectByPath, GetObjectPathStream, GetObjectPathStreamLength