Comprehensive Guide for Developers: Features, Integration, and API Reference
Represents the content of a PDF page. More...
#include <pdfsdk/cxx/content.h>
Public Member Functions | |
size_t | GetNumElements () const |
Element | GetElement (size_t index) const |
void | InsertElement (size_t index, const Element &element) |
void | AppendElement (const Element &element) |
void | RemoveElement (size_t index) |
Content (PDEContent handle, bool adopt=false) noexcept | |
Content (const Content &rhs) noexcept | |
Content & | operator= (const Content &rhs) noexcept |
Content (Content &&rhs) noexcept | |
Content & | operator= (Content &&rhs) noexcept |
Static Public Member Functions | |
static Content | Create () |
Represents the content of a PDF page.
This class provides methods to manipulate the elements of the PDF page content.
ISO 32000-2:2020 - 7.8.2 Content streams
void PDF::Content::AppendElement | ( | const Element & | element | ) |
Appends an element to the content.
element | The element to append. |
|
static |
Creates a new instance of the Content class.
Element PDF::Content::GetElement | ( | size_t | index | ) | const |
Gets the element at the specified index.
index | The index of the element to retrieve. |
size_t PDF::Content::GetNumElements | ( | ) | const |
Gets the number of elements in the content.
void PDF::Content::InsertElement | ( | size_t | index, |
const Element & | element ) |
Inserts an element at the specified index.
index | The index at which to insert the element. |
element | The element to insert. |
void PDF::Content::RemoveElement | ( | size_t | index | ) |
Removes the element at the specified index.
index | The index of the element to remove. |