<button onclick="print()">Print stage</button>
<div id="container"></div>
html, body, #container {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
button {
margin: 10px 0 0 10px;
var stage = acgraph.create('container');
stage.circle(300, 250, 200);
stage.rect(100, 50, 400, 400);
function print() {
// Sets paper size.
stage.print('a3');