mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-06-22 23:45:02 +00:00
17 lines
633 B
TypeScript
17 lines
633 B
TypeScript
|
|
import SharedOperations, { OperatorsType, OperatorParametersType } from "@stirling-pdf/shared-operations/src"
|
|
import { PdfFile } from "@stirling-pdf/shared-operations/src/wrappers/PdfFile"
|
|
|
|
// Import injected libraries here!
|
|
import * as pdfcpuWrapper from "@stirling-pdf/shared-operations/src/wasm/pdfcpu/pdfcpu-wrapper-node.js";
|
|
|
|
async function impose(params: OperatorParametersType["Impose"]): Promise<PdfFile> {
|
|
return SharedOperations.Impose.exec(params, pdfcpuWrapper);
|
|
}
|
|
|
|
const toExport: OperatorsType = {
|
|
...SharedOperations,
|
|
Impose: {exec: impose, spec: SharedOperations.Impose.spec},
|
|
}
|
|
export default toExport;
|