Stirling-PDF/public/functions/impose.js

14 lines
381 B
JavaScript

import * as pdfcpuWraopper from "../wasm/pdfcpu-wrapper-browser.js";
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);
}