wxPdfParser Class Reference

Class representing a PDF parser. (For internal use only). More...

#include <pdfparser.h>

List of all members.

Public Member Functions

 wxPdfParser (const wxString &filename, const wxString &password=wxEmptyString)
 Constructor.
virtual ~wxPdfParser ()
 Destructor.
bool IsOk ()
 Check whether the PDF document to be parsed is valid.
wxString GetPdfVersion ()
 Get PDF version of parsed document.
int GetPageCount ()
 Get number of pages in the parsed document.
bool GetSourceInfo (wxPdfInfo &info)
 Get the document information dictionary.
wxPdfObjectQueueGetObjectQueue ()
 Get the queue of referenced objects.
wxPdfObjectMap * GetObjectMap ()
 Get the map of referenced objects.
void AppendObject (int originalObjectId, int actualObjectId, wxPdfObject *obj)
 Append a referenced object to the queue.
wxPdfObjectGetPageResources (int pageno)
 Get the resources of a specific page.
void GetContent (int pageno, wxArrayPtrVoid &contents)
 Get the content stream collection of a specific page.
wxPdfArrayDouble * GetPageMediaBox (int pageno)
 Get the media box of a specific page.
wxPdfArrayDouble * GetPageCropBox (int pageno)
 Get the crop box of a specific page.
wxPdfArrayDouble * GetPageBleedBox (int pageno)
 Get the bleed box of a specific page.
wxPdfArrayDouble * GetPageTrimBox (int pageno)
 Get the trim box of a specific page.
wxPdfArrayDouble * GetPageArtBox (int pageno)
 Get the art box of a specific page.
wxPdfObjectResolveObject (wxPdfObject *obj)
 Resolve an object.
void SetUseRawStream (bool useRawStream)
 Set flag whether a stream should be decoded or not.
bool GetUseRawStream ()
 Get flag whether a stream should be decoded or not.

Protected Member Functions

wxPdfObjectGetPageResources (wxPdfObject *page)
 Get the resources of a specific page identified by a page object.
void GetPageContent (wxPdfObject *contentRef, wxArrayPtrVoid &contents)
 Get the content stream collection of a specific page.
wxPdfArrayDouble * GetPageBox (wxPdfDictionary *page, const wxString &boxIndex)
 Get a page box.
bool ParseDocument ()
 Parse PDF document.
bool SetupDecryptor ()
bool ParseXRef ()
 Parse the cross reference.
bool ParsePageTree (wxPdfDictionary *pages)
 Parse the page tree of the PDF document.
wxPdfDictionaryParseXRefSection ()
 Parse a cross reference section.
bool ParseXRefStream (int ptr, bool setTrailer)
 Parse a cross reference stream.
wxPdfObjectParseObject ()
 Parse an object.
wxPdfDictionaryParseDictionary ()
 Parse a dictionary.
wxPdfArrayParseArray ()
 Parse an array.
wxPdfObjectParseSpecificObject (int idx)
 Parse a specific object.
wxPdfObjectParseDirectObject (int k)
 Parse a direct object.
wxPdfObjectParseObjectStream (wxPdfStream *stream, int idx)
 Parse an object from an object stream.
void GetStreamBytes (wxPdfStream *stream)
 Parse the content of a stream object.
void GetStreamBytesRaw (wxPdfStream *stream)
 Parse the raw content of a stream object.
wxMemoryOutputStream * DecodePredictor (wxMemoryOutputStream *in, wxPdfObject *dicPar)
 Decode a stream predictor.
wxMemoryOutputStream * FlateDecode (wxMemoryOutputStream *osIn)
 Decode a stream that has the FlateDecode filter.
wxMemoryOutputStream * ASCIIHexDecode (wxMemoryOutputStream *osIn)
 Decode a stream that has the ASCIIHexDecode filter.
wxMemoryOutputStream * ASCII85Decode (wxMemoryOutputStream *osIn)
wxMemoryOutputStream * LZWDecode (wxMemoryOutputStream *osIn)
 Decode a stream that has the ASCII85Decode filter.

Static Protected Member Functions

static wxFileSystem * GetFileSystem ()
 Get wxWidgets file system.


Detailed Description

Class representing a PDF parser. (For internal use only).


Constructor & Destructor Documentation

wxPdfParser::wxPdfParser ( const wxString &  filename,
const wxString &  password = wxEmptyString 
)

Constructor.

wxPdfParser::~wxPdfParser (  )  [virtual]

Destructor.


Member Function Documentation

bool wxPdfParser::IsOk (  ) 

Check whether the PDF document to be parsed is valid.

wxString wxPdfParser::GetPdfVersion (  )  [inline]

Get PDF version of parsed document.

int wxPdfParser::GetPageCount (  ) 

Get number of pages in the parsed document.

bool wxPdfParser::GetSourceInfo ( wxPdfInfo info  ) 

Get the document information dictionary.

wxPdfObjectQueue* wxPdfParser::GetObjectQueue (  )  [inline]

Get the queue of referenced objects.

wxPdfObjectMap* wxPdfParser::GetObjectMap (  )  [inline]

Get the map of referenced objects.

void wxPdfParser::AppendObject ( int  originalObjectId,
int  actualObjectId,
wxPdfObject obj 
)

Append a referenced object to the queue.

wxPdfObject * wxPdfParser::GetPageResources ( int  pageno  ) 

Get the resources of a specific page.

void wxPdfParser::GetContent ( int  pageno,
wxArrayPtrVoid &  contents 
)

Get the content stream collection of a specific page.

wxPdfArrayDouble * wxPdfParser::GetPageMediaBox ( int  pageno  ) 

Get the media box of a specific page.

wxPdfArrayDouble * wxPdfParser::GetPageCropBox ( int  pageno  ) 

Get the crop box of a specific page.

wxPdfArrayDouble * wxPdfParser::GetPageBleedBox ( int  pageno  ) 

Get the bleed box of a specific page.

wxPdfArrayDouble * wxPdfParser::GetPageTrimBox ( int  pageno  ) 

Get the trim box of a specific page.

wxPdfArrayDouble * wxPdfParser::GetPageArtBox ( int  pageno  ) 

Get the art box of a specific page.

wxPdfObject * wxPdfParser::ResolveObject ( wxPdfObject obj  ) 

Resolve an object.

void wxPdfParser::SetUseRawStream ( bool  useRawStream  )  [inline]

Set flag whether a stream should be decoded or not.

bool wxPdfParser::GetUseRawStream (  )  [inline]

Get flag whether a stream should be decoded or not.

wxPdfObject * wxPdfParser::GetPageResources ( wxPdfObject page  )  [protected]

Get the resources of a specific page identified by a page object.

void wxPdfParser::GetPageContent ( wxPdfObject contentRef,
wxArrayPtrVoid &  contents 
) [protected]

Get the content stream collection of a specific page.

wxPdfArrayDouble * wxPdfParser::GetPageBox ( wxPdfDictionary page,
const wxString &  boxIndex 
) [protected]

Get a page box.

bool wxPdfParser::ParseDocument (  )  [protected]

Parse PDF document.

bool wxPdfParser::SetupDecryptor (  )  [protected]

bool wxPdfParser::ParseXRef (  )  [protected]

Parse the cross reference.

bool wxPdfParser::ParsePageTree ( wxPdfDictionary pages  )  [protected]

Parse the page tree of the PDF document.

wxPdfDictionary * wxPdfParser::ParseXRefSection (  )  [protected]

Parse a cross reference section.

bool wxPdfParser::ParseXRefStream ( int  ptr,
bool  setTrailer 
) [protected]

Parse a cross reference stream.

wxPdfObject * wxPdfParser::ParseObject (  )  [protected]

Parse an object.

wxPdfDictionary * wxPdfParser::ParseDictionary (  )  [protected]

Parse a dictionary.

wxPdfArray * wxPdfParser::ParseArray (  )  [protected]

Parse an array.

wxPdfObject * wxPdfParser::ParseSpecificObject ( int  idx  )  [protected]

Parse a specific object.

wxPdfObject * wxPdfParser::ParseDirectObject ( int  k  )  [protected]

Parse a direct object.

wxPdfObject * wxPdfParser::ParseObjectStream ( wxPdfStream stream,
int  idx 
) [protected]

Parse an object from an object stream.

void wxPdfParser::GetStreamBytes ( wxPdfStream stream  )  [protected]

Parse the content of a stream object.

void wxPdfParser::GetStreamBytesRaw ( wxPdfStream stream  )  [protected]

Parse the raw content of a stream object.

wxMemoryOutputStream * wxPdfParser::DecodePredictor ( wxMemoryOutputStream *  in,
wxPdfObject dicPar 
) [protected]

Decode a stream predictor.

wxMemoryOutputStream * wxPdfParser::FlateDecode ( wxMemoryOutputStream *  osIn  )  [protected]

Decode a stream that has the FlateDecode filter.

Parameters:
osIn the input data
Returns:
the decoded data

wxMemoryOutputStream * wxPdfParser::ASCIIHexDecode ( wxMemoryOutputStream *  osIn  )  [protected]

Decode a stream that has the ASCIIHexDecode filter.

Parameters:
osIn the input data
Returns:
the decoded data

wxMemoryOutputStream * wxPdfParser::ASCII85Decode ( wxMemoryOutputStream *  osIn  )  [protected]

Decode a stream that has the ASCII85Decode filter. /**

Parameters:
osIn the input data
Returns:
the decoded data

wxMemoryOutputStream * wxPdfParser::LZWDecode ( wxMemoryOutputStream *  osIn  )  [protected]

Decode a stream that has the ASCII85Decode filter.

Parameters:
osIn the input data
Returns:
the decoded data

wxFileSystem * wxPdfParser::GetFileSystem (  )  [static, protected]

Get wxWidgets file system.


The documentation for this class was generated from the following files:
Generated on Fri Dec 15 21:30:38 2006 for wxPdfDocument by  doxygen 1.5.1-p1