I compiled pdf2svg to WebAssembly using Emscripten. Multiple libraries needed to be adapted to the WASM environment, including Cairo, Poppler, and Fontconfig.
The original pdf2svg uses the standard GNU Build System-based build system.
To see the pdf2svg WASM in action, check out my PDF to SVG Converter tool.
Made by Anton Vasetenkov.
If you want to say hi, you can reach me on LinkedIn or via email. If you like my work, you can support me by buying me a coffee.