Basically, pd-fileutils is available globally as "pdfu" (ideally it shouldn't be there). Then you take the patch file you loaded (here called "mainStr") you re-parse it with pdfu (ideally you shouldn't need to do), you render the result as SVG and insert the SVG in your web page. In the example it is done in one line, but decomposing the whole thing looks like :
var parsedPatch =
pdfu.parse(mainStr)var svgStr =
pdfu.renderSvg(parsedPatch, {svgFile: false, ratio: 1.5})$('#svg').html(svgStr)Hope this helps. Please tell me if you need more help.