GetObjectPathNumber
Document properties, Content extraction
Description
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 GetObjectPathNumber(Const Path: WideString; Out Found: Boolean): Double;ActiveX
Function PDFlib::GetObjectPathNumber(Path As String, ByRef Found As Long) As DoubleDLL
double DLGetObjectPathNumber(int InstanceID, const wchar_t* Path, int Var Found);
double DLGetObjectPathNumberA(int InstanceID, const char* Path, int Var Found);Parameters
| Path | Object path in the syntax accepted by GetObjectByPath |
|---|---|
| Found | True 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