2023-11-10 23:41:31 +03:00
|
|
|
|
2023-11-19 17:22:17 +03:00
|
|
|
import SharedOperations, { OperatorsType, OperatorParametersType } from "@stirling-pdf/shared-operations/src"
|
2023-11-15 02:27:21 +03:00
|
|
|
import { PdfFile } from "@stirling-pdf/shared-operations/src/wrappers/PdfFile"
|
2023-11-10 23:41:31 +03:00
|
|
|
|
|
|
|
// Import injected libraries here!
|
2023-11-15 00:24:04 +01:00
|
|
|
import * as pdfcpuWrapper from "@stirling-pdf/shared-operations/src/wasm/pdfcpu/pdfcpu-wrapper-node.js";
|
2023-11-10 23:41:31 +03:00
|
|
|
|
2023-11-19 17:22:17 +03:00
|
|
|
async function impose(params: OperatorParametersType["Impose"]): Promise<PdfFile> {
|
|
|
|
return SharedOperations.Impose.exec(params, pdfcpuWrapper);
|
2023-11-13 03:50:02 +03:00
|
|
|
}
|
2023-11-10 23:41:31 +03:00
|
|
|
|
2023-11-19 17:22:17 +03:00
|
|
|
const toExport: OperatorsType = {
|
2023-11-10 23:41:31 +03:00
|
|
|
...SharedOperations,
|
2023-11-19 17:22:17 +03:00
|
|
|
Impose: {exec: impose, spec: SharedOperations.Impose.spec},
|
2023-11-10 23:41:31 +03:00
|
|
|
}
|
2023-11-13 03:50:02 +03:00
|
|
|
export default toExport;
|