PoDoFo 0.7.0
Public Member Functions | Protected Member Functions
PoDoFo::PdfFontCID Class Reference

#include <PdfFontCID.h>

Inheritance diagram for PoDoFo::PdfFontCID:
PoDoFo::PdfFont PoDoFo::PdfElement

List of all members.

Public Member Functions

 PdfFontCID (PdfFontMetrics *pMetrics, const PdfEncoding *const pEncoding, PdfVecObjects *pParent, bool bEmbed=true)
 PdfFontCID (PdfFontMetrics *pMetrics, const PdfEncoding *const pEncoding, PdfObject *pObject, bool bEmbed)
virtual void EmbedFont ()

Protected Member Functions

void Init (bool bEmbed)
void EmbedFont (PdfObject *pDescriptor)

Detailed Description

A PdfFont that represents a CID font.


Constructor & Destructor Documentation

PoDoFo::PdfFontCID::PdfFontCID ( PdfFontMetrics pMetrics,
const PdfEncoding *const  pEncoding,
PdfVecObjects pParent,
bool  bEmbed = true 
)

Create a new CID font.

Parameters:
pMetricspointer to a font metrics object. The font in the PDF file will match this fontmetrics object. The metrics object is deleted along with the font.
pEncodingthe encoding of this font. The font will not take ownership of this object.
pParentparent of the font object
bEmbedspecifies the embedding of font
PoDoFo::PdfFontCID::PdfFontCID ( PdfFontMetrics pMetrics,
const PdfEncoding *const  pEncoding,
PdfObject pObject,
bool  bEmbed 
)

Create a PdfFont based on an existing PdfObject

Parameters:
pMetricspointer to a font metrics object. The font in the PDF file will match this fontmetrics object. The metrics object is deleted along with the font.
pEncodingthe encoding of this font. The font will not take ownership of this object.
pObjectan existing PdfObject

Member Function Documentation

void PoDoFo::PdfFontCID::EmbedFont ( ) [virtual]

Embeds the font into PDF page

Reimplemented from PoDoFo::PdfFont.

void PoDoFo::PdfFontCID::EmbedFont ( PdfObject pDescriptor) [protected]

Embed the font file directly into the PDF file.

Parameters:
pDescriptorfont descriptor object
void PoDoFo::PdfFontCID::Init ( bool  bEmbed) [protected]

Initialize this font object.

Parameters:
bEmbedif true embed the font data into the PDF file.