PoDoFo::PdfData Class Reference

#include <PdfData.h>

Inheritance diagram for PoDoFo::PdfData:

PoDoFo::PdfDataType

List of all members.

Public Member Functions

 PdfData (const char *pszData)
 PdfData (const char *pszData, size_t dataSize)
 PdfData (const PdfData &rhs)
void Write (PdfOutputDevice *pDevice, const PdfEncrypt *pEncrypt=NULL) const
const PdfDataoperator= (const PdfData &rhs)
const std::string & data () const


Detailed Description

A datatype that allows to write abitrary data to a PDF file. The user of this class has to ensure that the data written to the PDF file using this class is valid data for a PDF file!

This class is used in PoDoFo to pad PdfVariants.


Constructor & Destructor Documentation

PoDoFo::PdfData::PdfData ( const char *  pszData  )  [inline]

Create a new PdfData object with valid PdfData

The contained data has to be a valid value in a PDF file. It will be written directly to the PDF file.

Parameters:
pszData a null-terminated string to be copied.

PoDoFo::PdfData::PdfData ( const char *  pszData,
size_t  dataSize 
) [inline]

Create a new PdfData object with valid PdfData.

Parameters:
pszData a char * buffer to be copied.
dataSize size of buffer

PoDoFo::PdfData::PdfData ( const PdfData rhs  )  [inline]

Copy an existing PdfData

Parameters:
rhs another PdfData to copy


Member Function Documentation

const std::string & PoDoFo::PdfData::data (  )  const [inline]

Access the data as a std::string

Returns:
a const reference to the contained data

const PdfData & PoDoFo::PdfData::operator= ( const PdfData rhs  )  [inline]

Copy an existing PdfData

Parameters:
rhs another PdfData to copy
Returns:
this object

void PoDoFo::PdfData::Write ( PdfOutputDevice pDevice,
const PdfEncrypt pEncrypt = NULL 
) const [virtual]

Write the complete datatype to a file.

Parameters:
pDevice write the object to this device

Implements PoDoFo::PdfDataType.


Generated on Wed Aug 25 20:24:54 2010 for PoDoFo by  doxygen 1.5.7.1