GetStructTreeItemText
Tagged PDF, Content Extraction
Περιγραφή
Επιστρέφει μια ιδιότητα κειμένου ενός στοιχείου snapshot του δέντρου δομής
Syntax
Delphi
Function TPDFlib.GetStructTreeItemText(Index, InfoID: Integer): WideString;Parameters
| Index | 1-based item index from the most recent StructTreeItemCount call. |
|---|---|
| InfoID | 1 the raw structure type (/S); 2 the type resolved through the /RoleMap chain; 3 the title (/T); 4 the alternate description (/Alt); 5 the replacement text (/ActualText); 6 the language (/Lang); 7 the element identifier (/ID); 8 the abbreviation expansion (/E); 9 the structure namespace URI referenced by /NS |
Τιμές επιστροφής
| '' | Ο δείκτης είναι εκτός εύρους ή η εγγραφή απουσιάζει |
|---|---|
| Text | Η ζητούμενη τιμή ιδιότητας |
Remarks
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