-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rearrange exception #84
Comments
Thanks - this sounds like a bug - we will look into it. |
Can you please provide a (minimal) script along with the PDF file that exhibits this issue. |
Hey @ccxvii, you can use the test.pdf from your tests folder: The exception only occurs if you specify all pages of the PDF file, i.e. document.rearrangePages([0, 1]) => no exception Hope this helps. I can also provide a minimal script later. Regards, |
Hey @ccxvii , seems like the issue is gone with the latest release, I can't reproduce it anymore. Regards, |
Hello,
I am trying to manipulate a PDF or change the page order, I tried the rearrangePages method, but here I get the following exception:
ERROR Error: Uncaught (in promise): RuntimeError: memory access out of bounds
RuntimeError: memory access out of bounds
at mupdf-wasm.wasm
at mupdf-wasm.wasm
at mupdf-wasm.wasm
at mupdf-wasm.wasm
at Object._wasm_free (mupdf-wasm.js:705:12)
at PDFDocument.rearrangePages (mupdf.js:1722:22)
The exception is triggered by the following line in the finally block:
libmupdf._wasm_free(ptr);
But the reordering still works.
Thank you and regards,
Alex
The text was updated successfully, but these errors were encountered: