|
#include <SElement.h>
Public Member Functions | |
| SElement (SDF::Obj dict=SDF::Obj(0)) | |
| Initialize a SElement using an existing low-level Cos/SDF object. | |
| SElement (const SElement &) | |
| SElement & | operator= (const SElement &) |
| bool | IsValid () const |
| |
| const char * | GetType () const |
| |
| int | GetNumKids () const |
| |
| bool | IsContentItem (int index) const |
| |
| class ContentItem | GetAsContentItem (int index) const |
| |
| SElement | GetAsStructElem (int index) const |
| |
| SElement | GetParent () const |
| |
| class STree | GetStructTreeRoot () const |
| |
| bool | HasTitle () const |
| |
| UString | GetTitle () const |
| |
| SDF::Obj | GetID () const |
| |
| bool | HasActualText () const |
| |
| UString | GetActualText () const |
| |
| bool | HasAlt () const |
| |
| UString | GetAlt () const |
| |
| SDF::Obj | GetSDFObj () const |
| |
Unlike the StructTree, SElement can have two different kinds of children: another SElement or a ContentItem (which can be marked content (MC), or a PDF object reference (OBJR)).
Initialize a SElement using an existing low-level Cos/SDF object.
| dict | - a low-level (SDF/Cos) dictionary representing the structural element. |
| pdftron::PDF::Struct::SElement::SElement | ( | const SElement & | ) |
| bool pdftron::PDF::Struct::SElement::IsValid | ( | ) | const |
| const char* pdftron::PDF::Struct::SElement::GetType | ( | ) | const |
The type corresponds to the 'S' (i.e. subtype) key in the structure element dictionary.
The type identifies the nature of the structure element and its role within the document (such as a chapter, paragraph, or footnote).
| int pdftron::PDF::Struct::SElement::GetNumKids | ( | ) | const |
| bool pdftron::PDF::Struct::SElement::IsContentItem | ( | int | index | ) | const |
| index | The index of the kid type to obtain. |
| class ContentItem pdftron::PDF::Struct::SElement::GetAsContentItem | ( | int | index | ) | const |
| index | The index of the kid to obtain. |
| SElement pdftron::PDF::Struct::SElement::GetAsStructElem | ( | int | index | ) | const |
| index | The index of the kid to obtain. |
| SElement pdftron::PDF::Struct::SElement::GetParent | ( | ) | const |
| class STree pdftron::PDF::Struct::SElement::GetStructTreeRoot | ( | ) | const |
| bool pdftron::PDF::Struct::SElement::HasTitle | ( | ) | const |
The title of the structure element, a text string representing it in human-readable form.
| UString pdftron::PDF::Struct::SElement::GetTitle | ( | ) | const |
| SDF::Obj pdftron::PDF::Struct::SElement::GetID | ( | ) | const |
| bool pdftron::PDF::Struct::SElement::HasActualText | ( | ) | const |
ActualText is an exact replacement for the structure element and its children. This replacement text is useful when extracting the document's contents in support of accessibility to users with disabilities or for other purposes.
| UString pdftron::PDF::Struct::SElement::GetActualText | ( | ) | const |
| bool pdftron::PDF::Struct::SElement::HasAlt | ( | ) | const |
Alt text is an alternate description of the structure element and its children in human-readable form, which is useful when extracting the document’s contents in support of accessibility.
| UString pdftron::PDF::Struct::SElement::GetAlt | ( | ) | const |
| SDF::Obj pdftron::PDF::Struct::SElement::GetSDFObj | ( | ) | const |