Tried to convert server-node to TS, there are still some issues
This commit is contained in:
14
server-node/src/utils/pdf-operations.ts
Normal file
14
server-node/src/utils/pdf-operations.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
|
||||
import SharedOperations from "@stirling-pdf/shared-operations";
|
||||
|
||||
// Import injected libraries here!
|
||||
import * as pdfcpuWrapper from "@stirling-pdf/shared-operations/wasm/pdfcpu/pdfcpu-wrapper-node.js";
|
||||
|
||||
async function impose(snapshot: any, nup: number, format: string) {
|
||||
return SharedOperations.impose(snapshot, nup, format, pdfcpuWrapper);
|
||||
}
|
||||
|
||||
export default {
|
||||
...SharedOperations,
|
||||
impose,
|
||||
}
|
||||
Reference in New Issue
Block a user