I am facing a challenge while printing a GOJS Diagram.
I am using this code flow to Print:-
var db = diagram.documentBounds.copy();
var boundswidth = db.width;
var boundsheight = db.height;
var svg = diagram.makeImage({size : new go.Size(boundswidth,boundsheight)});
var newTab = window.open();
newTab.document.body.appendChild(svg);
return ;
But while printing some part of the page is cut down.
So if it comes in more than 1 page then I don’t have an issue.
I am attaching a screenshot of the Image, so please suggest me how to print the complete page.
You have to make sure each image is small enough so that it will not be clipped when printing. That is why GoJS Printing -- Northwoods Software uses a double loop to make sure the whole diagram document area is chopped into pieces that fit into a page.