Stirling-PDF/shared-operations/functions/impose.js

12 lines
325 B
JavaScript
Raw Normal View History

2023-10-23 17:08:28 +02:00
export async function impose(snapshot, nup, format, pdfcpuWrapper) {
return await pdfcpuWrapper.oneToOne([
"pdfcpu.wasm",
"nup",
"-c",
"disable",
'f:' + format,
"/output.pdf",
String(nup),
"input.pdf",
], snapshot);
2023-10-18 01:20:31 +02:00
}