Your comments

Thanks Ian.

I was looking at this old page - http://content.rarewire.com/lab/
Ian, you might want to check the align attribute in the add a pdf tutorial.

<text name="main" width="110" height="100" color="#000000" font="courier" size="12" align="center" valign="center" alignment="center" text="Hello World!"></text>


I was having trouble getting my text to be centered, so I did try the 'alignment' attribute to get it to be centered.
Ian, check the following tutorials as well. They may have carried over the error.