#include <PdfOutputDevice.h>
Inheritance diagram for PoDoFo::PdfOutputDevice:
Public Member Functions | |
PdfOutputDevice () | |
PdfOutputDevice (const char *pszFilename) | |
PdfOutputDevice (char *pBuffer, size_t lLen) | |
PdfOutputDevice (const std::ostream *pOutStream) | |
PdfOutputDevice (PdfRefCountedBuffer *pOutBuffer) | |
virtual | ~PdfOutputDevice () |
virtual size_t | GetLength () const |
virtual void | Print (const char *pszFormat,...) |
virtual void | PrintV (const char *pszFormat, long lBytes, va_list argptr) |
long | PrintVLen (const char *pszFormat, va_list args) |
virtual void | Write (const char *pBuffer, size_t lLen) |
virtual size_t | Read (char *pBuffer, size_t lLen) |
virtual void | Seek (size_t offset) |
virtual size_t | Tell () const |
virtual void | Flush () |
This class is suitable for inheritance to provide output devices of your own for PoDoFo. Just overide the required virtual methods.
|
Construct a new PdfOutputDevice that does not write any data. Only the length of the data is counted. |
|
Construct a new PdfOutputDevice that writes all data to a file.
|
|
Construct a new PdfOutputDevice that writes all data to a memory buffer. The buffer will not be owned by this object and has to be allocated before.
|
|
Construct a new PdfOutputDevice that writes all data to a std::ostream. WARNING: PoDoFo will change the stream's locale. It will be restored when the PdfOutputStream controlling the stream is destroyed.
|
|
Construct a new PdfOutputDevice that writes all data to a PdfRefCountedBuffer. This output device has the advantage that the PdfRefCountedBuffer will resize itself if more memory is needed to hold all data.
|
|
Destruct the PdfOutputDevice object and close any open files. |
|
Flush the output files buffer to disk if this devices operates on a disk. Reimplemented in PoDoFo::PdfSignOutputDevice. |
|
The number of bytes written to this object.
Reimplemented in PoDoFo::PdfSignOutputDevice. |
|
Write to the PdfOutputDevice. Usage is as the usage of printf. WARNING: Do not use this for doubles or floating point values as the output might depend on the current locale.
Reimplemented in PoDoFo::PdfSignOutputDevice. |
|
Write to the PdfOutputDevice. Usage is as the usage of printf. WARNING: Do not use this for doubles or floating point values as the output might depend on the current locale.
|
|
Determine the length of a format string in bytes when written using PrintV
|
|
Read data from the device
Reimplemented in PoDoFo::PdfSignOutputDevice. |
|
Seek the device to the position offset from the begining
Reimplemented in PoDoFo::PdfSignOutputDevice. |
|
Get the current offset from the beginning of the file.
Reimplemented in PoDoFo::PdfSignOutputDevice. |
|
Write data to the buffer. Use this call instead of Print if you want to write binary data to the PdfOutputDevice.
Reimplemented in PoDoFo::PdfSignOutputDevice. |