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::PdfStreamedDocument Class Reference

#include <PdfStreamedDocument.h>

Inheritance diagram for PoDoFo::PdfStreamedDocument:
Inheritance graph
[legend]
Collaboration diagram for PoDoFo::PdfStreamedDocument:
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)
void Close ()
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 pEncoding=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
virtual EPdfWriteMode GetWriteMode () const
virtual bool IsAccessibilityAllowed () const
virtual bool IsCopyAllowed () const
virtual bool IsDocAssemblyAllowed () const
virtual bool IsEditAllowed () const
virtual bool IsEditNotesAllowed () const
virtual bool IsFillAndSignAllowed () const
virtual bool IsHighPrintAllowed () const
virtual bool IsLinearized () const
virtual bool IsPrintAllowed () const
 PdfStreamedDocument (const char *pszFilename, EPdfVersion eVersion=ePdfVersion_Default, PdfEncrypt *pEncrypt=NULL, EPdfWriteMode eWriteMode=ePdfWriteMode_Default)
 PdfStreamedDocument (PdfOutputDevice *pDevice, EPdfVersion eVersion=ePdfVersion_Default, PdfEncrypt *pEncrypt=NULL, EPdfWriteMode eWriteMode=ePdfWriteMode_Default)
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)

Protected Member Functions

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

Protected Attributes

PdfFontCache m_fontCache

Private Member Functions

void Init (PdfOutputDevice *pDevice, EPdfVersion eVersion=ePdfVersion_Default, PdfEncrypt *pEncrypt=NULL, EPdfWriteMode eWriteMode=ePdfWriteMode_Default)

Private Attributes

bool m_bOwnDevice
 If true m_pDevice is owned by this object and has to be deleted.
PdfOutputDevicem_pDevice
PdfEncryptm_pEncrypt
PdfImmediateWriterm_pWriter

Friends

class PdfElement
class PdfImage

Detailed Description

PdfStreamedDocument is the preferred class for creating new PDF documents.

Page contents, fonts and images are written to disk as soon as possible and are not kept in memory. This results in faster document generation and less memory being used.

Please use PdfMemDocument if you intend to work on the object structure of a PDF file.

One of the design goals of PdfStreamedDocument was to hide the underlying object structure of a PDF file as far as possible.

See also:
PdfDocument
PdfMemDocument

Example of using PdfStreamedDocument:

PdfStreamedDocument document( "outputfile.pdf" ); PdfPage* pPage = document.CreatePage( PdfPage::CreateStandardPageSize( ePdfPageSize_A4 ) ); PdfFont* pFont = document.CreateFont( "Arial" );

PdfPainter painter; painter.SetPage( pPage ); painter.SetFont( pFont ); painter.DrawText( 56.69, pPage->GetPageSize().GetHeight() - 56.69, "Hello World!" ); painter.FinishPage();

document.Close();

Definition at line 65 of file PdfStreamedDocument.h.


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

Generated by  Doxygen 1.6.0   Back to index