Hi Carlos,
- Currently we don’t have support to print the specific page in our diagram control.
- instead we get dataURL from exportDiagram method and convert it into multiple images based on the page size. Later you can print the specific images.
Code example:
// get data url
var url = diagram.exportDiagram({
fileName: "diagram",
mode: "data",
format: "png",
pageWidth: 400,
pageHeight: 400,
region: "pageSettings", multiplePage: true
});
//get multiple image data url
var images = getMultipleImage(img, { mode: "data", region: "pageSettings", pageWidth: 400, pageHeight: 400, multiplePage: true, margin: { top: 0, bottom: 0, left: 0, right: 0, } });
//print specific image
PrintWind.document.write('<img src="' + images[1] + '">');
- please refer to the JSPlayground link below.
Regards,
Shyam G