Coder Social home page Coder Social logo

Comments (6)

andyboeh avatar andyboeh commented on August 23, 2024

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.

rattkin avatar rattkin commented on August 23, 2024

What can i do to be able to export the diagram? I need it in the PDF!

from dokuwiki-plugin-bpmnio.

jdehaan avatar jdehaan commented on August 23, 2024

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.

andyboeh avatar andyboeh commented on August 23, 2024

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.

jdehaan avatar jdehaan commented on August 23, 2024

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.

jdehaan avatar jdehaan commented on August 23, 2024

-> https://www.dokuwiki.org/plugin:dw2pdf:exportsupport

from dokuwiki-plugin-bpmnio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.