Comments (6)
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.
from dokuwiki-plugin-bpmnio.
What can i do to be able to export the diagram? I need it in the PDF!
from dokuwiki-plugin-bpmnio.
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.
I tried to use dw2pdf in the past but it misses so many things (or other plugin miss things..) so it almost never generates a proper result if the pages make use of many plugin features. I had trouble to get rendered pages with the wrap plugin. This is really a very simple plugin and have also trouble... There is also a ticket for pdf issue in wrap plugin filed.
I understand the need to bring stuff to paper or downloadable content to hand it out to people having no access to the wiki. I am still learning a lot regarding web development. If a solution appears in order to run javascript within dokuwiki on the server then there is a good chance to get it to work.
Unfortunately due to my workload do not expect this to be implemented timely...
from dokuwiki-plugin-bpmnio.
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.
from dokuwiki-plugin-bpmnio.
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.
from dokuwiki-plugin-bpmnio.
-> https://www.dokuwiki.org/plugin:dw2pdf:exportsupport
from dokuwiki-plugin-bpmnio.
Related Issues (20)
- Update to newest bpmnio js version
- Integrate the editor HOT 2
- Add toolbar button for bpmnio that adds default content
- Use media file for providing the BPMN diagram content HOT 2
- error: startSectionEdit: $data "plugin_bpmnio" is NOT an array! One of your plugins needs an update. HOT 2
- Add support for DMN
- Add support for CMMN
- Cleanup vendor code
- Does not work with DokuWiki in Docker HOT 1
- Strange visualisation for DokuWiki Version Igor HOT 15
- Print support
- Edit Preview support HOT 1
- IDEA: Optional flag `read-only` to the options to mute the editor.
- Support DMN modeler HOT 1
- Upgrade dmn-js and bpmn-js to their latest respective versions
- Add unit tests for the plugin
- BPMN diagrams with Cyrillic letters not saved
- Installation via Extension Manager breaks Dokuwiki
- There is no scroll bar in touch screen mode for big chart
- Add parameter for scaling the whole diagram HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dokuwiki-plugin-bpmnio.