Can I export my Graph as PDF or Image? #604
Replies: 1 comment 2 replies
-
|
Hi AFAIK, this is not possible to do this. It is possible to do SVG export, I do it with mxGraph and this should work as well in maxGraph. Then, if you send the SVG to your backend you could generate the PDF backend side. Or doing the SVG to PDF conversion in the browser, but this is probably not a performant way to achieve your goal 😄 .
Here is the code I used (adapted from the drawio code): https://github.com/process-analytics/bpmn-visualization-js/blob/3be35d4289054f04bc7343c37613bb5a45f70a41/dev/ts/component/SvgExporter.ts#L33 In draw.io (and perhaps in the former mxGraph grapheditor examples) it is also possible to generate PDF. But this is done server side AFAIK. [UPDATE] See also a past answer I wrote about this topic: #234 (comment) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, is it possible to somehow extract my graph as PDF or as Image? I would love to send it to my backend as file or base64 so it can be stored and presented in modal on mobile devices.
Beta Was this translation helpful? Give feedback.
All reactions