GetObjectByPathCount
Document properties, Content Extraction
Mô tả
Trả về số phần tử của node mà một biểu thức path phân giải tới
Cú pháp
Delphi
Function TPDFlib.GetObjectByPathCount(Const Path: WideString): Integer;Tham số
| Path | Biểu thức path (ngữ pháp xem tại GetObjectByPath) |
|---|
Giá trị trả về
| -1 | Path không phân giải được |
|---|---|
| 0 | The node is a scalar. |
| N | Độ dài mảng, hoặc số mục của một dictionary hay stream dictionary |
Ví dụ
for I:= 0 to PDF.GetObjectByPathCount('Root/Pages/Kids')- 1 do
ShowMessage(PDF.GetObjectByPath('Root/Pages/Kids['+ IntToStr(I)+ ']/Type', 2));