PDF SDK Documentation

Comprehensive Guide for Developers: Features, Integration, and API Reference

Loading...
Searching...
No Matches
PDF::Content Class Reference

Represents the content of a PDF page. More...

#include <pdfsdk/cxx/content.h>

Inheritance diagram for PDF::Content:

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
 
Contentoperator= (const Content &rhs) noexcept
 
 Content (Content &&rhs) noexcept
 
Contentoperator= (Content &&rhs) noexcept
 

Static Public Member Functions

static Content Create ()
 

Detailed Description

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

Member Function Documentation

◆ AppendElement()

void PDF::Content::AppendElement ( const Element & element)

Appends an element to the content.

Parameters
elementThe element to append.

◆ Create()

static Content PDF::Content::Create ( )
static

Creates a new instance of the Content class.

Returns
The newly created Content object.

◆ GetElement()

Element PDF::Content::GetElement ( size_t index) const

Gets the element at the specified index.

Parameters
indexThe index of the element to retrieve.
Returns
The element at the specified index.

◆ GetNumElements()

size_t PDF::Content::GetNumElements ( ) const

Gets the number of elements in the content.

Returns
The number of elements in the content.

◆ InsertElement()

void PDF::Content::InsertElement ( size_t index,
const Element & element )

Inserts an element at the specified index.

Parameters
indexThe index at which to insert the element.
elementThe element to insert.

◆ RemoveElement()

void PDF::Content::RemoveElement ( size_t index)

Removes the element at the specified index.

Parameters
indexThe index of the element to remove.

The documentation for this class was generated from the following file: