Logo Search packages:      
Sourcecode: codeblocks version File versions  Download package

wxPdfParser Class Reference

#include <pdfparser.h>

List of all members.


Detailed Description

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

Definition at line 144 of file pdfparser.h.


Public Member Functions

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

Protected Member Functions

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

Static Protected Member Functions

static wxFileSystem * GetFileSystem ()
 Get wxWidgets file system.

Private Member Functions

void ReserveXRef (size_t count)
 Reserve at least count cross reference entries.

Private Attributes

bool m_cacheObjects
 Flag whether object streams should be cached.
int m_currentPage
 Number of current page.
wxPdfEncryptm_decryptor
 decryptor instance
bool m_encrypted
 Flag whether the document is encrypted.
wxPdfDictionarym_encryption
 Encryption dictionary.
wxString m_filename
 File name of PDF document.
int m_fileSize
 File size.
bool m_initialized
 Flag whether parser is properly initialized.
wxPdfObjectMap * m_objectMap
 Map for object queue elements.
wxPdfObjectQueuem_objectQueue
 Queue of referenced objects.
wxPdfObjectQueuem_objectQueueLast
 Pointer to last queue element.
int m_objGen
 Generation of current object.
int m_objNum
 Number of current object.
wxPdfObjStmMap * m_objStmCache
 Cache for object streams.
wxArrayPtrVoid m_pages
 Array of page objects.
wxString m_password
wxFSFile * m_pdfFile
 File system file object of PDF document.
wxString m_pdfVersion
 Version of PDF document.
wxPdfDictionarym_root
 Root object.
wxPdfTokenizerm_tokens
 Tokenizer.
wxPdfDictionarym_trailer
 Trailer dictionary.
bool m_useRawStream
 Flag whether to use raw stream data (without decoding).
wxPdfXRef m_xref
 Cross reference.

Static Private Attributes

static wxFileSystem * ms_fileSystem = NULL
 wxWidgets file system

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index