PoDoFo
0.9.6
|
#include <PdfIdentityEncoding.h>
Public Member Functions | |
PdfIdentityEncoding (int nFirstChar=0, int nLastChar=0xffff, bool bAutoDelete=true, PdfObject *pToUnicode=NULL) | |
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 |
virtual pdf_utf16be | GetCharCode (int nIndex) const |
![]() | |
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 PdfName & | GetID () const |
![]() | |
PdfEncoding (int nFirstChar, int nLastChar, PdfObject *=NULL) | |
Additional Inherited Members | |
![]() | |
bool | m_bToUnicodeIsLoaded |
If true, ToUnicode has been parsed. | |
PdfIdentityEncoding is a two-byte encoding which can be used with TrueType fonts to represent all characters present in a font. If the font contains all unicode glyphs, PdfIdentityEncoding will support all unicode characters.
PoDoFo::PdfIdentityEncoding::PdfIdentityEncoding | ( | int | nFirstChar = 0 , |
int | nLastChar = 0xffff , |
||
bool | bAutoDelete = true , |
||
PdfObject * | pToUnicode = NULL |
||
) |
Create a new PdfIdentityEncoding.
nFirstChar | the first supported unicode character code (at least 0) |
nLastChar | the last supported unicode character code, must be larger than nFirstChar (max value is 0xffff) |
bAutoDelete | if true the encoding is deleted by its owning font |
|
virtual |
Add this encoding object to a dictionary usually be adding an /Encoding key in font dictionaries.
rDictionary | add the encoding to this dictionary |
Implements PoDoFo::PdfEncoding.
|
virtual |
Convert a unicode PdfString to a string encoded with this encoding.
rString | an unicode PdfString. |
pFont | the font for which this string is converted |
Reimplemented from PoDoFo::PdfEncoding.
|
virtual |
Convert a string that is encoded with this encoding to an unicode PdfString.
rEncodedString | a string encoded by this encoding. Usually this string was read from a content stream. |
pFont | the font for which this string is converted |
Reimplemented from PoDoFo::PdfEncoding.
|
virtual |
Get the unicode character code for this encoding at the position nIndex. nIndex is a position between GetFirstChar() and GetLastChar()
nIndex | character code at position index |
Will throw an exception if nIndex is out of range.
Implements PoDoFo::PdfEncoding.
|
inlineprotectedvirtual |
Get a unique ID for this encoding which can used for comparisons!
Implements PoDoFo::PdfEncoding.
|
inlinevirtual |
PdfIdentityEncoding is usually delete along with the font.
Implements PoDoFo::PdfEncoding.
|
inlinevirtual |
Implements PoDoFo::PdfEncoding.