Blazor.Diagrams icon indicating copy to clipboard operation
Blazor.Diagrams copied to clipboard

Enhancement request: Export to PDF

Open TrevorDArcyEvans opened this issue 3 years ago • 1 comments

It would be really nice to get a PDF of the diagram :-)

Not sure how the API would look, maybe return an IFormFile?

TrevorDArcyEvans avatar May 13 '21 21:05 TrevorDArcyEvans

Hello, Exporting to any format will prove to be very difficult. This is because the library uses a mix of HTML and SVG, and the library doesn't know how a node or a link looks like, so it can't generate anything itself.

JS libraries can help you with this. You can use html2canvas in order to help you do what you want.

zHaytam avatar May 17 '21 15:05 zHaytam