#include <PdfEncoding.h>
|
Util::PdfMutex * | m_mutex |
| Mutex for the creation of the encoding table.
|
|
bool | m_bToUnicodeIsLoaded |
| If true, ToUnicode has been parsed.
|
|
A common base class for standard PdfEncoding which are known by name.
- PdfDocEncoding (only use this for strings which are not printed in the document. This is for meta data in the PDF).
- MacRomanEncoding
- WinAnsiEncoding
- MacExpertEncoding
- StandardEncoding
- SymbolEncoding
- ZapfDingbatsEncoding
- See also
- PdfWinAnsiEncoding
-
PdfMacRomanEncoding
-
PdfMacExportEncoding ..
-
PdfStandardEncoding
-
PdfSymbolEncoding
-
PdfZapfDingbatsEncoding
◆ AddToDictionary()
void PoDoFo::PdfSimpleEncoding::AddToDictionary |
( |
PdfDictionary & |
rDictionary | ) |
const |
|
virtual |
Add this encoding object to a dictionary usually be adding an /Encoding key in font dictionaries.
- Parameters
-
rDictionary | add the encoding to this dictionary |
Implements PoDoFo::PdfEncoding.
Reimplemented in PoDoFo::PdfWinAnsiEncoding.
◆ ConvertToEncoding()
◆ ConvertToUnicode()
Convert a string that is encoded with this encoding to a Unicode PdfString.
- Parameters
-
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 |
- Returns
- a Unicode PdfString.
Reimplemented from PoDoFo::PdfEncoding.
◆ GetCharCode()
pdf_utf16be PoDoFo::PdfSimpleEncoding::GetCharCode |
( |
int |
nIndex | ) |
const |
|
virtual |
◆ GetID()
const PdfName & PoDoFo::PdfSimpleEncoding::GetID |
( |
| ) |
const |
|
inlineprotectedvirtual |
◆ GetName()
const PdfName & PoDoFo::PdfSimpleEncoding::GetName |
( |
| ) |
const |
|
inline |
Get the name of this encoding.
- Returns
- the name of this encoding.
◆ GetToUnicodeTable()
virtual const pdf_utf16be * PoDoFo::PdfSimpleEncoding::GetToUnicodeTable |
( |
| ) |
const |
|
protectedpure virtual |
◆ IsAutoDelete()
bool PoDoFo::PdfSimpleEncoding::IsAutoDelete |
( |
| ) |
const |
|
inlinevirtual |
PdfSimpleEncoding subclasses are usually not auto-deleted, as they are allocated statically only once.
- Returns
- true if this encoding should be deleted automatically with the font.
- See also
- PdfFont::WinAnsiEncoding
-
PdfFont::MacRomanEncoding
Implements PoDoFo::PdfEncoding.
◆ IsSingleByteEncoding()
bool PoDoFo::PdfSimpleEncoding::IsSingleByteEncoding |
( |
| ) |
const |
|
inlinevirtual |
- Returns
- true if this is a single byte encoding with a maximum of 256 values.
Implements PoDoFo::PdfEncoding.