Skip to content

Commit

Permalink
docs: update README usage code
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaewoook committed Jan 29, 2024
1 parent b592593 commit 36afbd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ PDFium().then((PDFiumModule) => {
// memory allocation
const byteArray: Uint8Array = <FILE BINARY DATA>;
const fileSize = byteArray.length;
const binaryAddress = PDFiumModule.asm.malloc(fileSize);
const binaryAddress = PDFiumModule.wasmExports.malloc(fileSize);
PDFiumModule.HEAPU8.set(byteArray, binaryAddress);

// document loading
Expand Down

0 comments on commit 36afbd6

Please sign in to comment.