#include <PdfContentsTokenizer.h>
Inheritance diagram for PoDoFo::PdfContentsTokenizer:
Public Member Functions | |
PdfContentsTokenizer (const char *pBuffer, long lLen) | |
PdfContentsTokenizer (PdfCanvas *pCanvas) | |
bool | ReadNext (EPdfContentsType &reType, const char *&rpszKeyword, PoDoFo::PdfVariant &rVariant) |
bool | GetNextToken (const char *&pszToken, EPdfTokenType *peType=NULL) |
The parsed content stream can be used and modified in various ways.
This class is currently work in progress and subject to change!
|
Construct a PdfContentsTokenizer from an existing buffer. Usually a stream from a PdfPage.
|
|
Construct a PdfContentsTokenizer from a PdfCanvas (i.e. PdfPage or a PdfXObject). This is more convinient as you do not have to care about buffers yourself.
|
|
Reads the next token from the current file position ignoring all comments.
Reimplemented from PoDoFo::PdfTokenizer. |
|
Read the next keyword or variant, returning true and setting reType if something was read. Either rpszKeyword or rVariant, but never both, have defined and usable values on true return, with which being controlled by the value of eType. If EOF is encountered, returns false and leaves eType, pszKeyword and rVariant undefined. As a special case, reType may be set to ePdfContentsType_ImageData. In this case rpszzKeyword is undefined, and rVariant contains a PdfData variant containing the byte sequence between the ID and BI keywords sans the one byte of leading- and trailing- white space. No filter decoding is performed.
|