urish / pdfium-wasm

Building PDFium for Web Assembly

Home Page:https://hub.docker.com/r/urish/pdfium-wasm/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use without node.js

msprengholz opened this issue · comments

Just found your project, looks dope!
I tried compiling muPDF via emscripten but got stuck with all those dependencies. Seems like you got it figured out. I was wondering though if you could use pdfium-wasm without node.js. What are the current limitations on that? I guess it has something to do with the file system?

Thanks!

Should be possible to run in a browser, though the current version still can't render PDF pages - only load PDF files and return meta data such as the count of pages.

pdfium.js was able to successfully compile pdfium with emscripten and render pages in browser. May be worth looking at that project to see how it works. It looks like your build is structured better and more comprehensive.