* Create a PdfString from a hex string (e.g., "48656C6C6F"). * Whitespace is ignored. Odd-length strings are padded with 0.
(hex: string)
| 53 | * Whitespace is ignored. Odd-length strings are padded with 0. |
| 54 | */ |
| 55 | static fromHex(hex: string): PdfString { |
| 56 | return new PdfString(hexToBytes(hex), "hex"); |
| 57 | } |
| 58 | |
| 59 | /** |
| 60 | * Create a PdfString from raw bytes. |