modern-pdf-lib 0.12.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -5
- package/dist/{fflateAdapter-cT4YeY_h.cjs → fflateAdapter-AHC_S3cb.cjs} +1 -1
- package/dist/{fflateAdapter-D2mv_ttM.mjs → fflateAdapter-DX0VqT5k.mjs} +1 -1
- package/dist/{fontSubset-ClyTXlhY.mjs → fontSubset-ZpLoOZ2e.mjs} +1 -1
- package/dist/{fontSubset-BxsF9Tu5.cjs → fontSubset-pFc8Dueu.cjs} +1 -1
- package/dist/index.cjs +19696 -96
- package/dist/index.d.cts +393 -10
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +393 -10
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +19601 -8
- package/dist/{libdeflateWasm-QVHmuzw-.mjs → libdeflateWasm-DlHgU5oy.mjs} +2 -2
- package/dist/{libdeflateWasm-to2bG6NG.cjs → libdeflateWasm-OkNoqBnO.cjs} +2 -2
- package/dist/{loader-D9LTYmrX.mjs → loader-CQfoGFp9.mjs} +4 -3
- package/dist/{loader-mwt5wRJz.cjs → loader-_fqS-TmT.cjs} +4 -3
- package/dist/{pdfPage-JiCJLV3x.mjs → pdfPage-B7vA518n.mjs} +644 -216
- package/dist/{pdfPage-BMGFx7Xd.cjs → pdfPage-BebMv6fN.cjs} +672 -214
- package/dist/{pngEmbed-D4Uig1LV.mjs → pngEmbed-DTOqgEUC.mjs} +2 -2
- package/dist/{pngEmbed-BogDTEfL.cjs → pngEmbed-OYyOe_W0.cjs} +2 -2
- package/package.json +2 -2
- package/dist/documentMerge-F1EwwhJP.mjs +0 -19081
- package/dist/documentMerge-SGckZBSb.cjs +0 -19608
|
@@ -75,7 +75,7 @@ async function initDeflateWasm(wasmBytes) {
|
|
|
75
75
|
let bytes;
|
|
76
76
|
if (wasmBytes) bytes = wasmBytes;
|
|
77
77
|
else {
|
|
78
|
-
const { loadWasmModule } = await import("./loader-
|
|
78
|
+
const { loadWasmModule } = await import("./loader-CQfoGFp9.mjs");
|
|
79
79
|
bytes = await loadWasmModule("libdeflate");
|
|
80
80
|
}
|
|
81
81
|
const compiled = await WebAssembly.compile(new Uint8Array(bytes));
|
|
@@ -217,4 +217,4 @@ var LibdeflateWasm = class {
|
|
|
217
217
|
|
|
218
218
|
//#endregion
|
|
219
219
|
export { isAvailable as n, libdeflateWasm_exports as r, deflateSync as t };
|
|
220
|
-
//# sourceMappingURL=libdeflateWasm-
|
|
220
|
+
//# sourceMappingURL=libdeflateWasm-DlHgU5oy.mjs.map
|
|
@@ -75,7 +75,7 @@ async function initDeflateWasm(wasmBytes) {
|
|
|
75
75
|
let bytes;
|
|
76
76
|
if (wasmBytes) bytes = wasmBytes;
|
|
77
77
|
else {
|
|
78
|
-
const { loadWasmModule } = await Promise.resolve().then(() => require("./loader-
|
|
78
|
+
const { loadWasmModule } = await Promise.resolve().then(() => require("./loader-_fqS-TmT.cjs"));
|
|
79
79
|
bytes = await loadWasmModule("libdeflate");
|
|
80
80
|
}
|
|
81
81
|
const compiled = await WebAssembly.compile(new Uint8Array(bytes));
|
|
@@ -234,4 +234,4 @@ Object.defineProperty(exports, 'libdeflateWasm_exports', {
|
|
|
234
234
|
return libdeflateWasm_exports;
|
|
235
235
|
}
|
|
236
236
|
});
|
|
237
|
-
//# sourceMappingURL=libdeflateWasm-
|
|
237
|
+
//# sourceMappingURL=libdeflateWasm-OkNoqBnO.cjs.map
|
|
@@ -4,7 +4,8 @@ const DEFAULT_FILENAMES = {
|
|
|
4
4
|
libdeflate: "modern_pdf_deflate_bg.wasm",
|
|
5
5
|
png: "modern_pdf_png_bg.wasm",
|
|
6
6
|
ttf: "modern_pdf_ttf_bg.wasm",
|
|
7
|
-
shaping: "modern_pdf_shaping_bg.wasm"
|
|
7
|
+
shaping: "modern_pdf_shaping_bg.wasm",
|
|
8
|
+
jbig2: "modern_pdf_jbig2_bg.wasm"
|
|
8
9
|
};
|
|
9
10
|
/** Cached loaded WASM modules. */
|
|
10
11
|
const moduleCache = /* @__PURE__ */ new Map();
|
|
@@ -113,7 +114,7 @@ function resolveModulePath(name, config, runtime) {
|
|
|
113
114
|
* Results are cached -- subsequent calls for the same module name
|
|
114
115
|
* return the cached bytes without re-fetching.
|
|
115
116
|
*
|
|
116
|
-
* @param name - Module name. One of: `'libdeflate'`, `'png'`, `'ttf'`, `'shaping'`.
|
|
117
|
+
* @param name - Module name. One of: `'libdeflate'`, `'png'`, `'ttf'`, `'shaping'`, `'jbig2'`.
|
|
117
118
|
* @returns The raw WASM bytes.
|
|
118
119
|
* @throws If the module cannot be loaded in the current runtime.
|
|
119
120
|
*
|
|
@@ -159,4 +160,4 @@ async function loadWasmModule(name) {
|
|
|
159
160
|
|
|
160
161
|
//#endregion
|
|
161
162
|
export { getWasmLoaderConfig, loadWasmModule };
|
|
162
|
-
//# sourceMappingURL=loader-
|
|
163
|
+
//# sourceMappingURL=loader-CQfoGFp9.mjs.map
|
|
@@ -5,7 +5,8 @@ const DEFAULT_FILENAMES = {
|
|
|
5
5
|
libdeflate: "modern_pdf_deflate_bg.wasm",
|
|
6
6
|
png: "modern_pdf_png_bg.wasm",
|
|
7
7
|
ttf: "modern_pdf_ttf_bg.wasm",
|
|
8
|
-
shaping: "modern_pdf_shaping_bg.wasm"
|
|
8
|
+
shaping: "modern_pdf_shaping_bg.wasm",
|
|
9
|
+
jbig2: "modern_pdf_jbig2_bg.wasm"
|
|
9
10
|
};
|
|
10
11
|
/** Cached loaded WASM modules. */
|
|
11
12
|
const moduleCache = /* @__PURE__ */ new Map();
|
|
@@ -114,7 +115,7 @@ function resolveModulePath(name, config, runtime) {
|
|
|
114
115
|
* Results are cached -- subsequent calls for the same module name
|
|
115
116
|
* return the cached bytes without re-fetching.
|
|
116
117
|
*
|
|
117
|
-
* @param name - Module name. One of: `'libdeflate'`, `'png'`, `'ttf'`, `'shaping'`.
|
|
118
|
+
* @param name - Module name. One of: `'libdeflate'`, `'png'`, `'ttf'`, `'shaping'`, `'jbig2'`.
|
|
118
119
|
* @returns The raw WASM bytes.
|
|
119
120
|
* @throws If the module cannot be loaded in the current runtime.
|
|
120
121
|
*
|
|
@@ -161,4 +162,4 @@ async function loadWasmModule(name) {
|
|
|
161
162
|
//#endregion
|
|
162
163
|
exports.getWasmLoaderConfig = getWasmLoaderConfig;
|
|
163
164
|
exports.loadWasmModule = loadWasmModule;
|
|
164
|
-
//# sourceMappingURL=loader-
|
|
165
|
+
//# sourceMappingURL=loader-_fqS-TmT.cjs.map
|