Loading...
Searching...
No Matches
SElement.h
Go to the documentation of this file.
1//---------------------------------------------------------------------------------------
2// Copyright (c) 2001-2025 by Apryse Software Inc. All Rights Reserved.
3// Consult legal.txt regarding legal and license information.
4//---------------------------------------------------------------------------------------
5#ifndef PDFTRON_H_CPPPDFStructSElement
6#define PDFTRON_H_CPPPDFStructSElement
7
8namespace pdftron {
9 namespace PDF {
10 class PDFDoc;
11 namespace Struct {
12 class STree;
13
23{
24public:
25
35
38
44 static SElement Create(pdftron::PDF::PDFDoc& doc, const char* struct_type);
45
52 void Insert(SElement& kid, int insert_before);
53
60 int CreateContentItem(PDFDoc& doc, Page& page, int insert_before = -1);
61
65 bool IsValid() const;
66
74 const char* GetType() const;
75
79 int GetNumKids() const;
80
89 bool IsContentItem(int index) const;
90
97 class ContentItem GetAsContentItem(int index) const;
98
105 SElement GetAsStructElem(int index) const;
106
116
122
129 bool HasTitle() const;
130
135
140
148 bool HasActualText() const;
149
158
166 bool HasAlt() const;
167
176
181
182
183// @cond PRIVATE_DOC
184#ifndef SWIGHIDDEN
185 SElement(TRN_SElement impl);
186 TRN_SElement mp_elem;
187#endif
188// @endcond
189};
190
191
192
193 }; // namespace Struct
194 }; // namespace PDF
195}; // namespace pdftron
196
197#include <Impl/PDFDoc.inl>
198
199#endif // PDFTRON_H_CPPPDFStructSElement
SElement & operator=(const SElement &)
int CreateContentItem(PDFDoc &doc, Page &page, int insert_before=-1)
SElement(SDF::Obj dict=SDF::Obj(0))
const char * GetType() const
void Insert(SElement &kid, int insert_before)
class ContentItem GetAsContentItem(int index) const
static SElement Create(pdftron::PDF::PDFDoc &doc, const char *struct_type)
class STree GetStructTreeRoot() const
bool IsContentItem(int index) const
SElement GetAsStructElem(int index) const