setasign\SetaPDF2\Core\Encoding
PdfDoc Implementation of the PdfDocEncoding
File: /SetaPDF v2/Core/Encoding/PdfDoc.php
Old class name (alias):
\SetaPDF_Core_Encoding_PdfDoc
Class hierarchy
Implements
Summary
Static Properties
Static Methods
fromUtf16Be()
public static AbstractEncoding::fromUtf16Be (
string $string,
bool $ignore = false,
bool $translit = false
): stringbool $ignore = false,
bool $translit = false
Converts a string from UTF-16BE to the implemended encoding.
Parameters
- $string : string
The input string
- $ignore : bool
Characters that cannot be represented in the target charset are silently discarded
- $translit : bool
Transliteration activated
getTable()
Returns the encoding table array.
Keys are the unicode values while the values are the code points in the specific encoding.
toUtf16Be()
public static AbstractEncoding::toUtf16Be (
string $string,
bool $ignore = false,
bool $translit = false
): stringbool $ignore = false,
bool $translit = false
Converts a string from the implemented encoding to UTF-16BE.
Parameters
- $string : string
The input string
- $ignore : bool
Characters that cannot be represented in the target charset are silently discarded
- $translit : bool
Transliteration activated