PoDoFo  0.9.4
Public Member Functions | Protected Member Functions | List of all members
PoDoFo::PdfWinAnsiEncoding Class Reference

#include <PdfEncoding.h>

Inheritance diagram for PoDoFo::PdfWinAnsiEncoding:
PoDoFo::PdfSimpleEncoding PoDoFo::PdfEncoding PoDoFo::PdfIso88592Encoding PoDoFo::PdfWin1250Encoding

Public Member Functions

 PdfWinAnsiEncoding ()
 
- Public Member Functions inherited from PoDoFo::PdfSimpleEncoding
virtual PdfString ConvertToUnicode (const PdfString &rEncodedString, const PdfFont *pFont) const
 
virtual PdfRefCountedBuffer ConvertToEncoding (const PdfString &rString, const PdfFont *pFont) const
 
virtual bool IsAutoDelete () const
 
virtual bool IsSingleByteEncoding () const
 
const PdfNameGetName () const
 
virtual pdf_utf16be GetCharCode (int nIndex) const
 
- Public Member Functions inherited from PoDoFo::PdfEncoding
bool operator== (const PdfEncoding &rhs) const
 
bool operator< (const PdfEncoding &rhs) const
 
int GetFirstChar () const
 
int GetLastChar () const
 
const_iterator begin () const
 
const_iterator end () const
 

Protected Member Functions

virtual const pdf_utf16be * GetToUnicodeTable () const
 
virtual void AddToDictionary (PdfDictionary &rDictionary) const
 
- Protected Member Functions inherited from PoDoFo::PdfSimpleEncoding
virtual const PdfNameGetID () const
 
- Protected Member Functions inherited from PoDoFo::PdfEncoding
 PdfEncoding (int nFirstChar, int nLastChar, PdfObject *=NULL)
 

Additional Inherited Members

- Protected Attributes inherited from PoDoFo::PdfSimpleEncoding
Util::PdfMutex * m_mutex
 Mutex for the creation of the encoding table.
 
- Protected Attributes inherited from PoDoFo::PdfEncoding
bool m_bToUnicodeIsLoaded
 If true, ToUnicode has been parse.
 

Detailed Description

The WinAnsi Encoding is the default encoding in PoDoFo for contents on PDF pages.

It is also called CP-1252 encoding. This class may be used as base for derived encodings.

See also
PdfWin1250Encoding

Do not allocate this class yourself, as allocations might be expensive. Try using PdfFont::WinAnsiEncoding.

See also
PdfFont::WinAnsiEncoding

Constructor & Destructor Documentation

PoDoFo::PdfWinAnsiEncoding::PdfWinAnsiEncoding ( )
inline

Create a new PdfWinAnsiEncoding

Member Function Documentation

void PoDoFo::PdfWinAnsiEncoding::AddToDictionary ( PdfDictionary rDictionary) const
protectedvirtual

Add this encoding object to a dictionary usually be adding an /Encoding key in font dictionaries.

This method generates array of differences into /Encoding dictionary if called from derived class with different unicode table.

Parameters
rDictionaryadd the encoding to this dictionary

Reimplemented from PoDoFo::PdfSimpleEncoding.

const pdf_utf16be * PoDoFo::PdfWinAnsiEncoding::GetToUnicodeTable ( ) const
protectedvirtual

Gets a table of 256 short values which are the big endian unicode code points that are assigned to the 256 values of this encoding.

This table is used internally to convert an encoded string of this encoding to and from unicode.

Returns
an array of 256 big endian unicode code points

Implements PoDoFo::PdfSimpleEncoding.

Reimplemented in PoDoFo::PdfIso88592Encoding, and PoDoFo::PdfWin1250Encoding.