Please take a look at the Grid example.
In this example, I define the
pagesize variable like this:
Rectangle pagesize = PageSize.LETTER;
I use this variable to create the
Document instance, and I also use it in the loops that draw the grid:
PdfContentByte canvas = writer.getDirectContent(); for (float x = 0; x
In this case, I increment
y with 72 user units. This means that the distance between the dots will be 1 inch.