mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2026-02-17 13:52:14 +01:00
19 lines
713 B
TypeScript
19 lines
713 B
TypeScript
|
|
import SharedOperations, { OperationsType } from "@stirling-pdf/shared-operations/src";
|
|
import { ImposeParamsType } from '@stirling-pdf/shared-operations/src/functions/impose'
|
|
import { PdfFile } from "@stirling-pdf/shared-operations/src/wrappers/PdfFile";
|
|
|
|
// Import injected libraries here!
|
|
//import * as pdfcpuWrapper from "@stirling-pdf/shared-operations/wasm/pdfcpu/pdfcpu-wrapper-node.js";
|
|
|
|
async function impose(params: ImposeParamsType): Promise<PdfFile> {
|
|
const paramsToUse = { ...params, pdfcpuWrapper: null }; // TODO change null to pdfcpuWrapper
|
|
return SharedOperations.impose(paramsToUse);
|
|
}
|
|
|
|
const toExport: OperationsType = {
|
|
...SharedOperations,
|
|
impose,
|
|
}
|
|
export default toExport;
|