* Decode as PDF text string (auto-detects encoding). * * PDF text strings use either PDFDocEncoding (single-byte, similar to Latin-1) * or UTF-16BE with BOM (0xFE 0xFF prefix). This method auto-detects and decodes.
()
| 31 | * or UTF-16BE with BOM (0xFE 0xFF prefix). This method auto-detects and decodes. |
| 32 | */ |
| 33 | asString(): string { |
| 34 | return decodeTextString(this.bytes); |
| 35 | } |
| 36 | |
| 37 | /** |
| 38 | * Create a PdfString from text (auto-selects encoding). |
no test coverage detected