StructTreeItemCount
Tagged PDF, Content Extraction
Περιγραφή
Λαμβάνει επιπεδωμένο depth-first snapshot του δέντρου δομής του εγγράφου και επιστρέφει τον αριθμό στοιχείων δομής σε αυτό
Syntax
Delphi
Function TPDFlib.StructTreeItemCount: Integer;Τιμές επιστροφής
| 0 | Το έγγραφο δεν είναι ετικετοποιημένο ή δεν έχει στοιχεία δομής |
|---|---|
| N | Ο αριθμός στοιχείων δομής στο snapshot |
Remarks
Every call rebuilds the snapshot, so the item getters always describe the structure tree as it stood at the most recent count. Items are numbered 1 to N in depth-first document order: an element is directly followed by its children. Use GetStructTreeItemText and GetStructTreeItemIntProperty to inspect each item — the read-side counterpart of the BeginTag family for auditing tagged documents, exporting their structure or checking accessibility markup before repairs.
Παράδειγμα
Count:= PDF.StructTreeItemCount;
for I:= 1 to Count do
Memo1.Lines.Add(StringOfChar(' ', 2* PDF.GetStructTreeItemIntProperty(I, 6))+
PDF.GetStructTreeItemText(I, 1));Δείτε επίσης
GetStructTreeItemText, GetStructTreeItemIntProperty, IsTaggedPDF, GetPDFUADiagnostics