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

12 lines
351 B
TypeScript
Raw Normal View History

2023-11-10 19:08:07 +01:00
export async function impose(snapshot: any, nup: number, format: string, pdfcpuWrapper: any) {
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
}