@embedpdf/pdfium
Version:
PDFium WebAssembly for the web platform. This package provides a powerful JavaScript interface to PDFium, enabling high-quality PDF rendering and manipulation directly in web applications.
23 lines (22 loc) • 869 B
TypeScript
export interface WasmExports {
malloc: (size: number) => number;
free: (ptr: number) => void;
}
/**
* Subset of Emscripten helpers that our wrapper re-exports.
* Extend `customTsTypes` above if you want richer typings.
*/
export interface PdfiumRuntimeMethods {
wasmExports: WasmExports;
UTF16ToString: typeof UTF16ToString;
UTF8ToString: typeof UTF8ToString;
addFunction: typeof addFunction;
ccall: typeof ccall;
cwrap: typeof cwrap;
getValue: typeof getValue;
removeFunction: typeof removeFunction;
setValue: typeof setValue;
stringToUTF16: typeof stringToUTF16;
stringToUTF8: typeof stringToUTF8;
}
export declare const exportedRuntimeMethods: readonly ["wasmExports", "UTF16ToString", "UTF8ToString", "addFunction", "ccall", "cwrap", "getValue", "removeFunction", "setValue", "stringToUTF16", "stringToUTF8"];