pdf-factory 0.8.19 → 0.8.21
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/dist/parser.cjs +2 -2
- package/dist/parser.cjs.map +1 -1
- package/dist/parser.js +3 -3
- package/dist/parser.js.map +1 -1
- package/package.json +3 -3
package/dist/parser.js
CHANGED
|
@@ -117801,7 +117801,7 @@ globalThis._pdfjsTestingUtils = { HighlightOutliner: Lu }, globalThis.pdfjsLib =
|
|
|
117801
117801
|
XfaLayer: ho
|
|
117802
117802
|
};
|
|
117803
117803
|
//#endregion
|
|
117804
|
-
//#region node_modules/.pnpm/pdf-to-img@6.
|
|
117804
|
+
//#region node_modules/.pnpm/pdf-to-img@6.3.0/node_modules/pdf-to-img/dist/parseInput.js
|
|
117805
117805
|
var od = "data:application/pdf;base64,";
|
|
117806
117806
|
async function sd(e) {
|
|
117807
117807
|
if (Buffer.isBuffer(e)) return Uint8Array.from(e);
|
|
@@ -117811,7 +117811,7 @@ async function sd(e) {
|
|
|
117811
117811
|
throw Error("pdf-to-img received an unexpected input. Provide a path to file, a data URL, a Uint8Array, a Buffer, or a ReadableStream.");
|
|
117812
117812
|
}
|
|
117813
117813
|
//#endregion
|
|
117814
|
-
//#region node_modules/.pnpm/pdf-to-img@6.
|
|
117814
|
+
//#region node_modules/.pnpm/pdf-to-img@6.3.0/node_modules/pdf-to-img/dist/index.js
|
|
117815
117815
|
var cd = u.default.dirname((0, u.createRequire)(import.meta.url).resolve("pdfjs-dist/package.json")), ld = (e) => {
|
|
117816
117816
|
let t = JSON.parse(JSON.stringify(e));
|
|
117817
117817
|
for (let e in t) typeof t[e] == "string" && (t[e] = t[e].replaceAll(/(^þÿ|\u0000)/g, ""));
|
|
@@ -117835,7 +117835,7 @@ async function ud(e, t = {}) {
|
|
|
117835
117835
|
canvas: a,
|
|
117836
117836
|
viewport: i,
|
|
117837
117837
|
...t.renderParams
|
|
117838
|
-
}).promise, a.toBuffer("image/png");
|
|
117838
|
+
}).promise, t.format === "jpg" || t.format === "jpeg" ? a.toBuffer("image/jpeg") : a.toBuffer("image/png");
|
|
117839
117839
|
}
|
|
117840
117840
|
async function o() {
|
|
117841
117841
|
r.loadingTask.destroyed || await r.loadingTask.destroy();
|