PoDoFo  1.0.0-dev
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. More...
 
const PdfObjectGetObject () const
 Get access to the raw contents object. More...
 
PdfObjectGetObject ()
 
charbuff GetCopy () const
 
void CopyTo (charbuff &buffer) const
 
void CopyTo (OutputStream &stream) const
 
PdfObjectStreamCreateStreamForAppending (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: