Search
Printing and Print Preview

The diagram can be printed using browsers' standard print command. The print also includes other elements from the page and clips the diagram according to its parent scrollable div. You can work around that by copying the diagram image to a new window and printing from there:

JavaScript  Copy Code
function print()
{
    var printWindow = window.open();
    var img = printWindow.document.createElement("img");
    img.src = document.getElementById("diagram").toDataURL("image/png");
    printWindow.document.body.appendChild(img);
    printWindow.print();
    printWindow.close();
}