Merge branch 'version-2' of https://github.com/Frooodle/Stirling-PDF into version-2

This commit is contained in:
Saud Fatayerji
2023-11-15 02:27:26 +03:00
6 changed files with 903 additions and 21 deletions

View File

@@ -4,10 +4,10 @@ import { ImposeParamsType } from '@stirling-pdf/shared-operations/src/functions/
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";
import * as pdfcpuWrapper from "@stirling-pdf/shared-operations/src/wasm/pdfcpu/pdfcpu-wrapper-node.js";
async function impose(params: ImposeParamsType): Promise<PdfFile> {
const paramsToUse = { ...params, pdfcpuWrapper: null }; // TODO change null to pdfcpuWrapper
const paramsToUse = { ...params, pdfcpuWrapper: pdfcpuWrapper };
return SharedOperations.impose(paramsToUse);
}