Use WASM version of pdfium instead of pdf.js #310
espresso3389
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Sometimes we encounter some issues that is caused by the difference between pdfium and pdf.js. It's better if we can introduce WASM version of pdfium.
But the approach to use wasm_ffi to interop with WASM pdfium is still not realistic because it could not reuse the existing pdfium's ffi bindings.
Another approach is to introduce "manually written wrapper" for WASM pdfium though it takes so much cost/time for me...
The big help with recent AI, it gets more realistic. It "manually" writes these wrapper JS codes in several minutes.
https://chatgpt.com/share/67a47513-ded8-800e-a9bd-d7f4dd439b4b
The following codes are not tested but very promising:
Beta Was this translation helpful? Give feedback.
All reactions