Started migrating workflow controller
This commit is contained in:
12
shared-operations/src/functions/impose.ts
Normal file
12
shared-operations/src/functions/impose.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user