Tried with html2canvas, it is creating a png image but connections are not visible
--
You received this message because you are subscribed to the Google Groups "jsPlumb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jsplumb+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
no problem. Have some js like this in a file:
var page = require('webpage').create();
page.onCallback = function(data) {
page.clipRect = {top:0, left:0, width:WIDTH, height:HEIGHT}
page.render(OUTPUT PATH);
phantom.exit();
};
page.viewportSize = {width:100000, height:100000}; // seems to be necessary to avoid clipping.
page.open(url);
and execute it like
phantom printer.js
of course you’ll probably want to pass the url and output in as args - they are available as system.args[...] in Phantom.
The HTML page you load should have CSS in it somehow that suppresses everything except the container inside which jsPlumb resides. does that make sense?
Yes, this will be great! It would be even better to export to vector format like svg or pdf.
--