GetStructTreeItemText
Tagged PDF, Content Extraction
תיאור
מחזירה מאפיין טקסט של פריט אחד בתמונת מצב של עץ המבנה
תחביר
Delphi
Function TPDFlib.GetStructTreeItemText(Index, InfoID: Integer): WideString;פרמטרים
| Index | אינדקס פריט החל מ-1 מהקריאה האחרונה ל-StructTreeItemCount |
|---|---|
| InfoID | 1 סוג המבנה הגולמי (/S); 2 הטיפוס שנפתר דרך שרשרת ה-/RoleMap; 3 הכותרת (/T); 4 התיאור החלופי (/Alt); 5 טקסט ההחלפה (/ActualText); 6 השפה (/Lang); 7 מזהה האלמנט (/ID); 8 הרחבת הקיצור (/E); 9 ה-URI של מרחב השמות המבני ש-/NS מפנה אליו |
ערכי החזרה
| '' | האינדקס מחוץ לטווח או שהרשומה נעדרת |
|---|---|
| Text | The requested property value. |
הערות
InfoID 2 follows legacy /RoleMap and PDF 2.0 /RoleMapNS chains for up to 32 hops, so documents that tag content with custom types still report the standard structure type they map to.
דוגמה
if PDF.GetStructTreeItemText(I, 2)= 'Figure' then
Alt:= PDF.GetStructTreeItemText(I, 4); // alternate descriptionראו גם
StructTreeItemCount, GetStructTreeItemIntProperty, AddRoleMap