pdfcpu & wasm update, server side functions init, README.md, CONTRIBUTE.md
This commit is contained in:
15
functions/impose.js
Normal file
15
functions/impose.js
Normal file
@@ -0,0 +1,15 @@
|
||||
import * as pdfcpuWraopper from "../public/wasm/pdfcpu-wrapper-node.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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user