Stirling-PDF/public/functions/impose.js

14 lines
381 B
JavaScript
Raw Normal View History

import * as pdfcpuWraopper from "../wasm/pdfcpu-wrapper-browser.js";
2023-10-18 01:20:31 +02:00
export async function impose(snapshot, nup, format) {
return await pdfcpuWraopper.oneToOne([
"pdfcpu.wasm",
"nup",
"-c",
"disable",
'f:' + format,
"/output.pdf",
String(nup),
"input.pdf",
], snapshot);
2023-10-18 01:20:31 +02:00
}