PoDoFo 1.2.0
Loading...
Searching...
No Matches
Public Member Functions | Friends | List of all members
PoDoFo::PdfContents Class Referencefinal

A interface that provides a wrapper around "PDF content" - the instructions that are used to draw on the PDF "canvas". More...

#include <PdfContents.h>

Public Member Functions

void Reset ()
 Reset the contents internal object.
 
const PdfObject & GetObject () const
 Get access to the raw contents object.
 
PdfObject & GetObject ()
 
charbuff GetCopy () const
 
void CopyTo (charbuff &buffer) const
 
void CopyTo (OutputStream &stream) const
 
PdfObjectStream & CreateStreamForAppending (PdfStreamAppendFlags flags=PdfStreamAppendFlags::None)
 Get access to an object into which you can add contents.
 

Friends

class PdfPage
 

Detailed Description

A interface that provides a wrapper around "PDF content" - the instructions that are used to draw on the PDF "canvas".

Member Function Documentation

◆ CopyTo()

void PdfContents::CopyTo ( charbuff &  buffer) const
Remarks
It clears the buffer before copying

◆ GetObject()

const PdfObject & PoDoFo::PdfContents::GetObject ( ) const
inline

Get access to the raw contents object.

It will either be a PdfObjectStream or a PdfArray

Returns
a contents object

◆ Reset()

void PdfContents::Reset ( )

Reset the contents internal object.

Remarks
a new (initially empty) array container object will be created

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