Bpmn-to-image with angular

How to use bpmn-to-image (npm link is here) with angular. How to install and import it in angular??

Thanks in advance.

You cannot. It is a command line utility.

What would you like to accomplish?

It looks like it’s maybe possible,

Apparently it uses require() to import on node, not sure if you can port it to a web page though. So i believe it would be better to use the native converter to PNG of bpmn-js and one library to assemble PDF on angular from the generated PNG. Would be nice because you could add a title or whatever you need.

Can you inform what version of angular do you use?