This example uses jsPDF an svg2pdf libraries to create a quality PDF export of Ogma visualisation. We specifically go through SVG export step to ensure the printing quality of the visualisation content. You can export legend too.