adding spaceAfterLastPage option, defaults to true in 2.x, to false in 3.x