2023-11-10 23:41:31 +03:00
|
|
|
|
2023-11-15 02:27:21 +03:00
|
|
|
import SharedOperations, { OperationsType } from "@stirling-pdf/shared-operations/src"
|
2023-11-14 03:26:42 +03:00
|
|
|
import { ImposeParamsType } from '@stirling-pdf/shared-operations/src/functions/impose'
|
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-14 03:26:42 +03:00
|
|
|
async function impose(params: ImposeParamsType): Promise<PdfFile> {
|
2023-11-17 20:38:45 +01:00
|
|
|
return SharedOperations.impose(params, pdfcpuWrapper);
|
2023-11-13 03:50:02 +03:00
|
|
|
}
|
2023-11-10 23:41:31 +03:00
|
|
|
|
2023-11-14 03:26:42 +03:00
|
|
|
const toExport: OperationsType = {
|
2023-11-10 23:41:31 +03:00
|
|
|
...SharedOperations,
|
2023-11-13 03:50:02 +03:00
|
|
|
impose,
|
2023-11-10 23:41:31 +03:00
|
|
|
}
|
2023-11-13 03:50:02 +03:00
|
|
|
export default toExport;
|