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

This factory creates a PdfEncodingMap. More...

#include <PdfEncodingMapFactory.h>

Static Public Member Functions

static bool TryParseCMapEncoding (const PdfObject &cmapObj, std::unique_ptr< PdfEncodingMap > &encoding)
 Try to parse a CMap encoding from an object. More...
 
static std::unique_ptr< PdfEncodingMapParseCMapEncoding (const PdfObject &cmapObj)
 Parse a CMap encoding from an object. More...
 
static PdfBuiltInEncodingConstPtr WinAnsiEncodingInstance ()
 Singleton method which returns a global instance of WinAnsiEncoding. More...
 
static PdfBuiltInEncodingConstPtr MacRomanEncodingInstance ()
 Singleton method which returns a global instance of MacRomanEncoding. More...
 
static PdfBuiltInEncodingConstPtr MacExpertEncodingInstance ()
 Singleton method which returns a global instance of MacExpertEncoding. More...
 
static PdfEncodingMapConstPtr TwoBytesHorizontalIdentityEncodingInstance ()
 Singleton method which returns a global instance of Horizontal IndentityEncoding. More...
 
static PdfEncodingMapConstPtr TwoBytesVerticalIdentityEncodingInstance ()
 Singleton method which returns a global instance of Vertical IndentityEncoding. More...
 
static PdfEncodingMapConstPtr GetStandard14FontEncodingMap (PdfStandard14FontType stdFont)
 Return the encoding map for the given standard font type or nullptr for unknown.
 
static PdfCMapEncodingConstPtr GetPredefinedCMap (const std::string_view &cmapName)
 Get a predefined CMap. More...
 

Friends

class PdfEncoding
 
class PdfEncodingFactory
 
class PdfDifferenceEncoding
 
class PdfFontMetricsFreetype
 

Detailed Description

This factory creates a PdfEncodingMap.

Member Function Documentation

◆ GetPredefinedCMap()

PdfCMapEncodingConstPtr PdfEncodingMapFactory::GetPredefinedCMap ( const std::string_view &  cmapName)
static

Get a predefined CMap.

Returns
The found map or nullptr if absent

◆ MacExpertEncodingInstance()

PdfBuiltInEncodingConstPtr PdfEncodingMapFactory::MacExpertEncodingInstance ( )
static

Singleton method which returns a global instance of MacExpertEncoding.

Returns
global instance of MacExpertEncoding

◆ MacRomanEncodingInstance()

PdfBuiltInEncodingConstPtr PdfEncodingMapFactory::MacRomanEncodingInstance ( )
static

Singleton method which returns a global instance of MacRomanEncoding.

Returns
global instance of MacRomanEncoding

◆ ParseCMapEncoding()

unique_ptr< PdfEncodingMap > PdfEncodingMapFactory::ParseCMapEncoding ( const PdfObject cmapObj)
static

Parse a CMap encoding from an object.

Remarks
Throws if parse failed
Returns
The results may be a non null PdfCMapEncoding or PdfIdentityEncoding on succces

◆ TryParseCMapEncoding()

bool PdfEncodingMapFactory::TryParseCMapEncoding ( const PdfObject cmapObj,
std::unique_ptr< PdfEncodingMap > &  encoding 
)
static

Try to parse a CMap encoding from an object.

Remarks
The results may be a PdfCMapEncoding or PdfIdentityEncoding

◆ TwoBytesHorizontalIdentityEncodingInstance()

PdfEncodingMapConstPtr PdfEncodingMapFactory::TwoBytesHorizontalIdentityEncodingInstance ( )
static

Singleton method which returns a global instance of Horizontal IndentityEncoding.

Returns
global instance of Horizontal IdentityEncoding

◆ TwoBytesVerticalIdentityEncodingInstance()

PdfEncodingMapConstPtr PdfEncodingMapFactory::TwoBytesVerticalIdentityEncodingInstance ( )
static

Singleton method which returns a global instance of Vertical IndentityEncoding.

Returns
global instance of Vertical IdentityEncoding

◆ WinAnsiEncodingInstance()

PdfBuiltInEncodingConstPtr PdfEncodingMapFactory::WinAnsiEncodingInstance ( )
static

Singleton method which returns a global instance of WinAnsiEncoding.

Returns
global instance of WinAnsiEncoding
See also
Win1250EncodingInstance

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