mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2024-12-21 19:08:24 +01:00
12 lines
351 B
TypeScript
12 lines
351 B
TypeScript
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);
|
|
} |