PoDoFo
0.9.6
|
#include <PdfDifferenceEncoding.h>
Public Types | |
enum | EBaseEncoding { eBaseEncoding_Font , eBaseEncoding_WinAnsi , eBaseEncoding_MacRoman , eBaseEncoding_MacExpert } |
Public Member Functions | |
PdfDifferenceEncoding (const PdfEncodingDifference &rDifference, PdfDocument *pParent, bool bAutoDelete=true) | |
PdfDifferenceEncoding (const PdfEncodingDifference &rDifference, PdfVecObjects *pParent, bool bAutoDelete=true) | |
PdfDifferenceEncoding (const PdfEncodingDifference &rDifference, EBaseEncoding eBaseEncoding, PdfDocument *pParent, bool bAutoDelete=true) | |
PdfDifferenceEncoding (const PdfEncodingDifference &rDifference, EBaseEncoding eBaseEncoding, PdfVecObjects *pParent, bool bAutoDelete=true) | |
PdfDifferenceEncoding (PdfObject *pObject, bool bAutoDelete=true, bool bExplicitNames=false, 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 |
const PdfEncodingDifference & | GetDifferences () 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 |
Static Public Member Functions | |
static pdf_utf16be | NameToUnicodeID (const PdfName &rName) |
static PdfName | UnicodeIDToName (pdf_utf16be inCodePoint) |
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. | |
PdfDifferenceEncoding is an encoding, which is based on either the fonts encoding or a predefined encoding and defines differences to this base encoding.
Defines the base encoding from which a PdfDifferenceEncoding differs.
PoDoFo::PdfDifferenceEncoding::PdfDifferenceEncoding | ( | const PdfEncodingDifference & | rDifference, |
PdfDocument * | pParent, | ||
bool | bAutoDelete = true |
||
) |
Create a new PdfDifferenceEncoding which is based on the fonts encoding.
rDifference | the differences in this encoding |
pParent | parent PdfVecObjects. Add a newly created object to this vector. |
bAutoDelete | if true the encoding is deleted by its owning font |
PoDoFo::PdfDifferenceEncoding::PdfDifferenceEncoding | ( | const PdfEncodingDifference & | rDifference, |
PdfVecObjects * | pParent, | ||
bool | bAutoDelete = true |
||
) |
Create a new PdfDifferenceEncoding which is based on the fonts encoding.
rDifference | the differences in this encoding |
pParent | parent PdfDocument. Add a newly created object to this vector. |
bAutoDelete | if true the encoding is deleted by its owning font |
PoDoFo::PdfDifferenceEncoding::PdfDifferenceEncoding | ( | const PdfEncodingDifference & | rDifference, |
EBaseEncoding | eBaseEncoding, | ||
PdfDocument * | pParent, | ||
bool | bAutoDelete = true |
||
) |
Create a new PdfDifferenceEncoding which is based on a predefined encoding.
rDifference | the differences in this encoding |
eBaseEncoding | the base encoding of this font |
pParent | parent PdfDocument. Add a newly created object to this vector. |
bAutoDelete | if true the encoding is deleted by its owning font |
PoDoFo::PdfDifferenceEncoding::PdfDifferenceEncoding | ( | const PdfEncodingDifference & | rDifference, |
EBaseEncoding | eBaseEncoding, | ||
PdfVecObjects * | pParent, | ||
bool | bAutoDelete = true |
||
) |
Create a new PdfDifferenceEncoding which is based on a predefined encoding.
rDifference | the differences in this encoding |
eBaseEncoding | the base encoding of this font |
pParent | parent PdfVecObjects. Add a newly created object to this vector. |
bAutoDelete | if true the encoding is deleted by its owning font |
PoDoFo::PdfDifferenceEncoding::PdfDifferenceEncoding | ( | PdfObject * | pObject, |
bool | bAutoDelete = true , |
||
bool | bExplicitNames = false , |
||
PdfObject * | pToUnicode = NULL |
||
) |
Create a new PdfDifferenceEncoding from an existing object in a PDF file.
pObject | an existing differences encoding |
bAutoDelete | if true the encoding is deleted by its owning font |
bExplicitNames | if true, glyph names are meaningless explicit keys on the font (used for Type3 fonts) |
|
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.
|
inline |
Get read-only access to the object containing the actual differences.
|
inlineprotectedvirtual |
Get a unique ID for this encoding which can used for comparisons!
Implements PoDoFo::PdfEncoding.
|
inlinevirtual |
Implements PoDoFo::PdfEncoding.
|
inlinevirtual |
Implements PoDoFo::PdfEncoding.
|
static |
Convert a standard character name to a unicode code point
rName | a standard character name |
|
static |
Convert an unicode code point to a standard character name
inCodePoint | a code point |