PoDoFo 0.9.6
PoDoFo::PdfEncodingObjectFactory Class Reference

#include <PdfEncodingObjectFactory.h>

Static Public Member Functions

static const PdfEncodingCreateEncoding (PdfObject *pObject, PdfObject *pToUnicode=NULL, bool bExplicitNames=false)

Detailed Description

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

Member Function Documentation

◆ CreateEncoding()

const PdfEncoding * PoDoFo::PdfEncodingObjectFactory::CreateEncoding ( PdfObject * pObject,
PdfObject * pToUnicode = NULL,
bool bExplicitNames = false )
static

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

Parameters
pObjectmust be a name or an encoding dictionary
pToUnicodethe optional ToUnicode dictionary
bExplicitNamesif true, glyph names are meaningless explicit keys on the font (used for Type3 fonts)
Returns
a PdfEncoding or NULL