modern-pdf-lib / InitWasmOptions
Interface: InitWasmOptions
Defined in: src/index.ts:155
Options for WASM module initialization.
Properties
deflate?
optionaldeflate:boolean
Defined in: src/index.ts:157
Initialize the deflate/inflate WASM module. Default: false.
deflateWasm?
optionaldeflateWasm:Uint8Array<ArrayBufferLike>
Defined in: src/index.ts:166
Pre-loaded WASM bytes for the deflate module. When provided, the module is instantiated directly from these bytes.
fonts?
optionalfonts:boolean
Defined in: src/index.ts:161
Initialize the font subsetting WASM module. Default: false.
fontWasm?
optionalfontWasm:Uint8Array<ArrayBufferLike>
Defined in: src/index.ts:174
Pre-loaded WASM bytes for the font subsetting module.
jpeg?
optionaljpeg:boolean
Defined in: src/index.ts:176
Initialize the JPEG encoding/decoding WASM module. Default: false.
jpegWasm?
optionaljpegWasm:Uint8Array<ArrayBufferLike>
Defined in: src/index.ts:180
Pre-loaded WASM bytes for the JPEG encoding/decoding module.
png?
optionalpng:boolean
Defined in: src/index.ts:159
Initialize the PNG decoding WASM module. Default: false.
pngWasm?
optionalpngWasm:Uint8Array<ArrayBufferLike>
Defined in: src/index.ts:170
Pre-loaded WASM bytes for the PNG decoding module.