I want to create a PDF to be printed on a POS Receipt Printer using a thermal roll Paper width 80mm. The problem is that I dont know what the Page Height will be untill all the items are added, so, Im using SetPageCoords pdf.kpcTopDown, but If either i dont set the Page Height or set any size, when I change the Height at the end, before the EndPage, the size is ok, but the contents move.
Any idea on how to resize the page keeping the contents in the correct place? O what it is the correct way to do this?