paper.scaleContentToFit([opt])

Scale the paper content so that it fits the paper dimensions.

The function accepts an object with additional settings (all optional):

The function is illustrated in our paper demo.