MCPcopy Create free account
hub / github.com/LibPDF-js/core / fromBytes

Method fromBytes

src/objects/pdf-string.ts:63–65  ·  view source on GitHub ↗

* Create a PdfString from raw bytes. * Uses hex format for cleaner output.

(bytes: Uint8Array)

Source from the content-addressed store, hash-verified

61 * Uses hex format for cleaner output.
62 */
63 static fromBytes(bytes: Uint8Array): PdfString {
64 return new PdfString(bytes, "hex");
65 }
66
67 toBytes(writer: ByteWriter): void {
68 if (this.format === "hex") {

Callers 5

generateEncryptionFunction · 0.45
reconstructEncryptDictFunction · 0.45
encodeTextForFontFunction · 0.45
embedMethod · 0.45
encodeTextForFontMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected