GetObjectPathNumberA

文档属性、内容提取

描述

末尾的 A 表示 ANSI(char)DLL 入口点;ActiveX/COM 接口仅公开 Unicode 形式。其行为与 GetObjectPathNumber 相同,字符串参数按当前 SetAnsiMode 代码页解释

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

语法

Delphi

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

DLL

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

参数

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

返回值

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

备注

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

另请参阅

GetObjectByPath, GetObjectPathStream, GetObjectPathStreamLength