#include <STree.h>
Public Member Functions | |
STree (SDF::Obj struct_dict) | |
STree (const STree &) | |
STree & | operator= (const STree &) |
void | Insert (class SElement &kid, int insert_before) |
bool | IsValid () const |
int | GetNumKids () |
class SElement | GetKid (int index) |
class SElement | GetElement (const char *id_buf, int id_buf_sz) |
RoleMap | GetRoleMap () const |
class ClassMap | GetClassMap () const |
SDF::Obj | GetSDFObj () const |
STree () | |
Static Public Member Functions | |
static STree | Create (PDF::PDFDoc &doc) |
STree is the root of the structure tree, which is a central repository for information related to a PDF document's logical structure. There is at most one structure tree in each document.
pdftron::PDF::Struct::STree::STree | ( | SDF::Obj | struct_dict | ) |
Initialize a STree using an existing low-level Cos/SDF object.
struct_dict | - a low-level (SDF/Cos) dictionary representing the . |
pdftron::PDF::Struct::STree::STree | ( | const STree & | ) |
pdftron::PDF::Struct::STree::STree | ( | ) |
|
static |
Create a structure tree if it is missing, else return the existing structure tree
doc | the document in which to create or get the structure tree from |
class ClassMap pdftron::PDF::Struct::STree::GetClassMap | ( | ) | const |
class SElement pdftron::PDF::Struct::STree::GetElement | ( | const char * | id_buf, |
int | id_buf_sz | ||
) |
id_buf | A pointer to a buffer containing the ID to search for. |
id_buf_sz | The number of characters in id_buf. |
class SElement pdftron::PDF::Struct::STree::GetKid | ( | int | index | ) |
index | The index of the kid to obtain. |
int pdftron::PDF::Struct::STree::GetNumKids | ( | ) |
RoleMap pdftron::PDF::Struct::STree::GetRoleMap | ( | ) | const |
SDF::Obj pdftron::PDF::Struct::STree::GetSDFObj | ( | ) | const |
void pdftron::PDF::Struct::STree::Insert | ( | class SElement & | kid, |
int | insert_before | ||
) |
Inserts the specified kid element after the given position as a kid of the specified structure tree root.
kid | The kid element to insert. |
insert_before | The position after which the kid is inserted. If element currently has no kids, insert_before is ignored. |
bool pdftron::PDF::Struct::STree::IsValid | ( | ) | const |