PoDoFo 0.9.20
Public Member Functions | List of all members
PoDoFo::PdfContents Class Reference

#include <PdfContents.h>

Public Member Functions

void Reset (PdfObject *obj=nullptr)
 
const PdfObjectGetObject () const
 
PdfObjectStreamGetStreamForAppending (PdfStreamAppendFlags flags=PdfStreamAppendFlags::None)
 

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

◆ 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

◆ GetStreamForAppending()

PdfObjectStream & PdfContents::GetStreamForAppending ( PdfStreamAppendFlags  flags = PdfStreamAppendFlags::None)

Get access to an object into which you can add contents at the end of the "stream".

◆ Reset()

void PdfContents::Reset ( PdfObject obj = nullptr)

Reset the contents internal object

Parameters
objthe object to set as the /Contents. Must be a dictionary or an array. if nullptr, a new array object will be created