-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Export to PDF does not work #4
Comments
The diagram is rendered using JavaScript in your web browser, while the PDF created by dw2pdf is rendered on the server using mPDF. Therefore, only the base64 encoded diagram is shown. |
What can i do to be able to export the diagram? I need it in the PDF! |
I tried to dig in the problem but it really seems not so easy to solve. I think I understood quite well what the problem is, it's exactly what you describe. In order to solve it we would "simply" (lol...) need a way to render the bpmnio into a picture or (SVG if supported by PDF) on the server side. This seems to be a kind of headache. |
One possibility would be using the editor patch: bpmnio-js provides rendering to SVG and, IIRC, also PNG. During editing, we could upload the rendered picture to a cache file. However, as soon as you change the bpmn syntax directly, the picture is lost. I tried to find a bpmn rendering library for PHP, but couldn't find a good one. Another possibility would be some kind of node.js plugin for DokuWiki that allows server-sided rendering. I'm aware of a php-based node.js interface, but that requires Linux to be running on the server. I quite like the idea of a node.js plugin for DokuWiki as that would solve some rendering issues for other plugins as well - it's a hack, though. |
I do not know if integrating node.js is a hack, it sounds to me more like the perfect solution. To have a clean rendering the server side should behave as close as possible like the client side rendering. In normal mode the client would do the job, for pdf rendering the server. Unfortunately I am not yet an expert in these topics. I try to get help in order to get more hints on how to do this. |
Export to pdf with DW2PDF Plugin does not work. Instead of image, this is displayed:
Printing works OK.
The text was updated successfully, but these errors were encountered: