PoDoFo  1.0.0-dev
Static Public Member Functions | List of all members
PoDoFo::PdfEncodingFactory Class Referencefinal

This factory creates a PdfEncoding from an existing object in the PDF. More...

#include <PdfEncodingFactory.h>

Static Public Member Functions

static PdfEncoding CreateEncoding (const PdfObject &fontObj, const PdfFontMetrics &metrics)
 Create a new PdfEncoding from either an encoding name or an encoding dictionary. More...
 
static PdfEncoding CreateWinAnsiEncoding ()
 Singleton method which returns a global instance of WinAnsiEncoding. More...
 
static PdfEncoding CreateMacRomanEncoding ()
 Singleton method which returns a global instance of MacRomanEncoding. More...
 
static PdfEncoding CreateMacExpertEncoding ()
 Singleton method which returns a global instance of MacExpertEncoding. More...
 

Detailed Description

This factory creates a PdfEncoding from an existing object in the PDF.

Member Function Documentation

◆ CreateEncoding()

PdfEncoding PdfEncodingFactory::CreateEncoding ( const PdfObject fontObj,
const PdfFontMetrics metrics 
)
static

Create a new PdfEncoding from either an encoding name or an encoding dictionary.

Parameters
fontObjfont object
toUnicodethe optional ToUnicode dictionary
Returns
a PdfEncoding or nullptr

◆ CreateMacExpertEncoding()

PdfEncoding PdfEncodingFactory::CreateMacExpertEncoding ( )
static

Singleton method which returns a global instance of MacExpertEncoding.

Returns
global instance of MacExpertEncoding

◆ CreateMacRomanEncoding()

PdfEncoding PdfEncodingFactory::CreateMacRomanEncoding ( )
static

Singleton method which returns a global instance of MacRomanEncoding.

Returns
global instance of MacRomanEncoding

◆ CreateWinAnsiEncoding()

PdfEncoding PdfEncodingFactory::CreateWinAnsiEncoding ( )
static

Singleton method which returns a global instance of WinAnsiEncoding.

Returns
global instance of WinAnsiEncoding
See also
GlobalWin1250EncodingInstance, GlobalIso88592EncodingInstance

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