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 DoubleDLL
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