paper.setGridSize(gridSize)

Set the grid size of the paper.