3 ms·
Thanks for your hints! I added a 'Open PDF' button to circumvent popup blockers. Yes, I used emscripten to port it to Javascript. It was not that hard. Emscrip
by manuels__ 14y ago
Thanks for your hints! I added a 'Open PDF' button to circumvent popup blockers.
Yes, I used emscripten to port it to Javascript.
It was not that hard. Emscripten had three bugs I had to fix (the hardest was to find that the %g format was not supported by emscripten's sscanf).
But it was compiled almost like for x86: first convert the pdftex 'web' souce code to c using web2c, then compile it to LLVM bytecode and the LLVM bytecode to JS.
- quirm 14y agoI would like to compile it on my own with emscripten. Did you use emconfigure or did you write you own compilation script? Couldn't find any pointers to that in the Git, but maybe I didn't look around long enough to find it. How did you deal with kpathsea?
- moneypenny 14y agoThis is awesome. Or witchcraft. Top, top work. I love it. Now to try with my monster list of packages...