GetStructTreeItemIntProperty
Tagged PDF, Content Extraction
תיאור
Returns a numeric property of one structure tree snapshot item.
תחביר
Delphi
Function TPDFlib.GetStructTreeItemIntProperty(Index, PropertyID: Integer): Integer;פרמטרים
| Index | אינדקס פריט החל מ-1 מהקריאה האחרונה ל-StructTreeItemCount |
|---|---|
| PropertyID | 1 מספר רכיבי המבנה הצאצאים; 2 מספר מזהי התוכן המסומן; 3 מזהה התוכן המסומן הראשון (-1 כאשר אין כזה); 4 מספר הדף (1-based) שבו נמצא תוכן הרכיב's (0 כאשר אינו ידוע); 5 מספר האובייקט העקיף של הרכיב's; 6 רמת הקינון (1 = רמת המסמך); 7 אינדקס הפריט (1-based) של ההורה (0 = שורש עץ המבנה) |
ערכי החזרה
| 0 | האינדקס מחוץ לטווח, או שערך המאפיין אפס |
|---|---|
| N | The requested property value. |
הערות
The page number comes from the element's /Pg entry, or from its first marked-content reference when the element itself carries none. Parent and level values allow the flat item list to be walked as a tree without touching PDF objects.
דוגמה
Level:= PDF.GetStructTreeItemIntProperty(I, 6);
Page:= PDF.GetStructTreeItemIntProperty(I, 4);