PoDoFo 0.9.6
|
#include <PdfEncoding.h>
Public Member Functions | |
PdfWinAnsiEncoding () | |
![]() | |
virtual void | AddToDictionary (PdfDictionary &rDictionary) const |
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 PdfName & | GetName () const |
virtual pdf_utf16be | GetCharCode (int nIndex) const |
![]() | |
bool | operator== (const PdfEncoding &rhs) const |
bool | operator< (const PdfEncoding &rhs) const |
virtual void | AddToDictionary (PdfDictionary &rDictionary) const =0 |
virtual PdfString | ConvertToUnicode (const PdfString &rEncodedString, const PdfFont *pFont) const |
virtual PdfRefCountedBuffer | ConvertToEncoding (const PdfString &rString, const PdfFont *pFont) const |
int | GetFirstChar () const |
int | GetLastChar () const |
const_iterator | begin () const |
const_iterator | end () const |
virtual pdf_utf16be | GetCharCode (int nIndex) const =0 |
Protected Member Functions | |
virtual const pdf_utf16be * | GetToUnicodeTable () const |
virtual void | AddToDictionary (PdfDictionary &rDictionary) const |
![]() | |
virtual const PdfName & | GetID () const |
virtual const pdf_utf16be * | GetToUnicodeTable () const =0 |
![]() | |
PdfEncoding (int nFirstChar, int nLastChar, PdfObject *=NULL) | |
virtual const PdfName & | GetID () const =0 |
Additional Inherited Members | |
![]() | |
Util::PdfMutex * | m_mutex |
Mutex for the creation of the encoding table. | |
![]() | |
bool | m_bToUnicodeIsLoaded |
If true, ToUnicode has been parsed. | |
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.
Do not allocate this class yourself, as allocations might be expensive. Try using PdfFont::WinAnsiEncoding.
|
inline |
Create a new PdfWinAnsiEncoding
|
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.
rDictionary | add the encoding to this dictionary |
Reimplemented from PoDoFo::PdfSimpleEncoding.
|
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.
Implements PoDoFo::PdfSimpleEncoding.
Reimplemented in PoDoFo::PdfWin1250Encoding, and PoDoFo::PdfIso88592Encoding.