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

Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | Friends

PoDoFo::PdfDocument Class Reference

#include <PdfDocument.h>

Inheritance diagram for PoDoFo::PdfDocument:
Inheritance graph
[legend]
Collaboration diagram for PoDoFo::PdfDocument:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void AddNamedDestination (const PdfDestination &rDest, const PdfString &rsName)
const PdfDocumentAppend (const PdfMemDocument &rDoc, bool bAppendAll=true)
void AttachFile (const PdfFileSpec &rFileSpec)
PdfFontCreateDuplicateFontType1 (PdfFont *pFont, const char *pszSuffix)
PdfFontCreateFont (const char *pszFontName, const PdfEncoding *const pEncoding=PdfEncodingFactory::GlobalWinAnsiEncodingInstance(), PdfFontCache::EFontCreationFlags eFontCreationFlags=PdfFontCache::eFontCreationFlags_AutoSelectBase14, bool bEmbedd=true)
PdfFontCreateFont (const char *pszFontName, bool bBold, bool bItalic, const PdfEncoding *const pEncoding=PdfEncodingFactory::GlobalWinAnsiEncodingInstance(), PdfFontCache::EFontCreationFlags eFontCreationFlags=PdfFontCache::eFontCreationFlags_AutoSelectBase14, bool bEmbedd=true, const char *pszFileName=NULL)
PdfFontCreateFont (FT_Face face, const PdfEncoding *const pEncoding=PdfEncodingFactory::GlobalWinAnsiEncodingInstance(), bool bEmbedd=true)
PdfFontCreateFontSubset (const char *pszFontName, bool bBold, bool bItalic, const PdfEncoding *const =PdfEncodingFactory::GlobalWinAnsiEncodingInstance(), const char *pszFileName=NULL)
PdfPageCreatePage (const PdfRect &rSize)
void EmbedSubsetFonts ()
PdfRect FillXObjectFromDocumentPage (PdfXObject *pXObj, const PdfMemDocument &rDoc, int nPage, bool bUseTrimBox)
PdfAcroFormGetAcroForm (bool bCreate=ePdfCreateObject, PdfAcroForm::EPdfAcroFormDefaulAppearance eDefaultAppearance=PdfAcroForm::ePdfAcroFormDefaultAppearance_BlackText12pt)
FT_Library GetFontLibrary () const
PdfInfoGetInfo () const
PdfNamesTreeGetNamesTree (bool bCreate=ePdfCreateObject)
PdfVecObjectsGetObjects ()
const PdfVecObjectsGetObjects () const
PdfOutlinesGetOutlines (bool bCreate=ePdfCreateObject)
PdfPageGetPage (int nIndex) const
int GetPageCount () const
EPdfPageMode GetPageMode (void) const
PdfPagesTreeGetPagesTree () const
virtual EPdfVersion GetPdfVersion () const =0
virtual EPdfWriteMode GetWriteMode () const =0
virtual bool IsAccessibilityAllowed () const =0
virtual bool IsCopyAllowed () const =0
virtual bool IsDocAssemblyAllowed () const =0
virtual bool IsEditAllowed () const =0
virtual bool IsEditNotesAllowed () const =0
virtual bool IsFillAndSignAllowed () const =0
virtual bool IsHighPrintAllowed () const =0
virtual bool IsLinearized () const =0
virtual bool IsPrintAllowed () const =0
void SetBaseURI (const std::string &inBaseURI)
void SetBindingDirection (PdfName &inDirection)
void SetCenterWindow (void)
void SetDisplayDocTitle (void)
void SetFitWindow (void)
void SetHideMenubar (void)
void SetHideToolbar (void)
void SetHideWindowUI (void)
void SetLanguage (const std::string &inLanguage)
void SetPageLayout (EPdfPageLayout inLayout)
void SetPageMode (EPdfPageMode inMode)
void SetPrintScaling (PdfName &inScalingType)
void SetUseFullScreen (void)
virtual ~PdfDocument ()

Protected Member Functions

void Clear ()
void FixObjectReferences (PdfObject *pObject, int difference)
PdfObjectGetCatalog ()
const PdfObjectGetCatalog () const
PdfObjectGetNamedObjectFromCatalog (const char *pszName) const
const PdfObjectGetTrailer () const
PdfObjectGetTrailer ()
void InitPagesTree ()
 PdfDocument ()
void SetCatalog (PdfObject *pObject)
void SetInfo (PdfInfo *pInfo)
void SetTrailer (PdfObject *pObject)
void SetViewerPreference (const PdfName &whichPref, bool inValue)
void SetViewerPreference (const PdfName &whichPref, const PdfObject &valueObj)

Protected Attributes

PdfFontCache m_fontCache

Private Member Functions

PdfDocumentoperator= (const PdfDocument &)
 PdfDocument (const PdfDocument &)

Private Attributes

EPdfVersion m_eVersion
PdfAcroFormm_pAcroForms
PdfObjectm_pCatalog
PdfInfom_pInfo
PdfNamesTreem_pNamesTree
PdfOutlinesm_pOutlines
PdfPagesTreem_pPagesTree
PdfObjectm_pTrailer
PdfVecObjects m_vecObjects

Friends

class PdfElement
class PdfWriter

Detailed Description

PdfDocument is the core interface for working with PDF documents.

PdfDocument provides easy access to the individual pages in the PDF file and to certain special dictionaries.

PdfDocument cannot be used directly. Use PdfMemDocument whenever you want to change the object structure of a PDF file.

When you are only creating PDF files, please use PdfStreamedDocument which is usually faster for creating PDFs.

See also:
PdfStreamedDocument
PdfMemDocument

Definition at line 62 of file PdfDocument.h.


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

Generated by  Doxygen 1.6.0   Back to index