GetObjectPathNumber

文档属性、内容提取

描述

解析 pages[0]/MediaBox[2] 这类对象路径,把数值叶子作为 double 返回,并用标志说明该叶子是否找到且为数值

语法

Delphi

Function GetObjectPathNumber(Const Path: WideString; Out Found: Boolean): Double;

ActiveX

Function PDFlib::GetObjectPathNumber(Path As String, ByRef Found As Long) As Double

DLL

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

参数

Path按 GetObjectByPath 所接受语法的对象路径
Found解析出的叶子是数值时为 True

返回值

数值本身;路径缺失或非数值时返回 0 且 Found 为 False

备注

页面自身未携带时,页面字典查找会从 /Parent 页面节点继承 MediaBox、Resources 等属性

另请参阅

GetObjectByPath, GetObjectPathStream, GetObjectPathStreamLength