mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2024-12-27 00:07:01 +01:00
14 lines
381 B
JavaScript
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);
|
|
} |