#include <PdfEncoding.h>
A PdfEncoding is in PdfFont to transform a text string into a representation so that it can be displayed in a PDF file.
PdfEncoding can also be used to convert strings from a PDF file back into a PdfString.
◆ PdfEncoding()
| PdfEncoding::PdfEncoding |
( |
| ) |
|
◆ ConvertToCIDs()
| vector< PdfCID > PdfEncoding::ConvertToCIDs |
( |
const PdfString & | encodedStr | ) |
const |
◆ ConvertToEncoded()
| charbuff PdfEncoding::ConvertToEncoded |
( |
const std::string_view & | str | ) |
const |
◆ ConvertToUtf8()
| string PdfEncoding::ConvertToUtf8 |
( |
const PdfString & | encodedStr | ) |
const |
◆ GetCodePoint() [1/2]
| char32_t PdfEncoding::GetCodePoint |
( |
const PdfCharCode & | codeUnit | ) |
const |
Get code point from char code unit
- Returns
- the found code point or U'\0' if missing or multiple matched codepoints
◆ GetCodePoint() [2/2]
| char32_t PdfEncoding::GetCodePoint |
( |
unsigned | charCode | ) |
const |
Get code point from char code
- Returns
- the found code point or U'\0' if missing or multiple matched codepoints
◆ GetFirstChar()
| const PdfCharCode & PdfEncoding::GetFirstChar |
( |
| ) |
const |
This return the first char code used in the encoding
◆ GetId()
| size_t PoDoFo::PdfEncoding::GetId |
( |
| ) |
const |
|
inline |
◆ GetLastChar()
This return the last char code used in the encoding
◆ GetLimits()
| const PdfEncodingLimits & PdfEncoding::GetLimits |
( |
| ) |
const |
Get actual limits of the encoding
May be the limits inferred from /Encoding or the limits inferred by /FirstChar, /LastChar
◆ GetToUnicodeMap()
Get the ToUnicode map, throws if missing
◆ GetToUnicodeMapSafe() [1/2]
Get the ToUnicode map, fallback to the normal encoding if missing
- Returns
- the retrieved map
◆ GetToUnicodeMapSafe() [2/2]
| bool PdfEncoding::GetToUnicodeMapSafe |
( |
const PdfEncodingMap *& | toUnicode | ) |
const |
Get the ToUnicode map, fallback to the normal encoding if missing
- Parameters
-
| toUnicode | the retrieved map |
- Returns
- true if the retrieved map is valid, false otherwise
◆ HasCIDMapping()
| bool PdfEncoding::HasCIDMapping |
( |
| ) |
const |
Return true if the encoding does CID mapping
◆ HasParsedLimits()
| bool PdfEncoding::HasParsedLimits |
( |
| ) |
const |
Returns true if /FirstChar and /LastChar were parsed from object
◆ IsDynamicEncoding()
| bool PdfEncoding::IsDynamicEncoding |
( |
| ) |
const |
|
virtual |
◆ IsNull()
| bool PdfEncoding::IsNull |
( |
| ) |
const |
Return true if the encoding is a dummy null encoding
◆ IsSimpleEncoding()
| bool PdfEncoding::IsSimpleEncoding |
( |
| ) |
const |
Return true if the encoding is simple and has a non-CID mapping /Encoding entry
◆ TryConvertToCIDs()
| bool PdfEncoding::TryConvertToCIDs |
( |
const PdfString & | encodedStr, |
|
|
std::vector< PdfCID > & | cids ) const |
◆ TryConvertToUtf8()
| bool PdfEncoding::TryConvertToUtf8 |
( |
const PdfString & | encodedStr, |
|
|
std::string & | str ) const |
The documentation for this class was generated from the following files:
- PdfEncoding.h
- PdfEncoding.cpp