I need to create a "template" in xml that defines what my PDF will look like and dynamically replace a phone number in the pdf. I used the example online, but am having trouble with an image. When I tell the xml to put a new page, it does this for the text but the image prints on the first line right under the first image. Any idea what this isnt working for me?
Thanks!
<letter>
<image <image url="http://localhost/images/homepageImages/myimage.jpg" align="right"/>
To: <mail /><newline />
Ref: your website<newline />
<newline />
Hello <givenname />,<newline />
<newline />
I visited your website a while ago (<website />
and I saw you added
<newpage />
<image url="http://localhost/images/homepageImages/myimage.jpg" align="right"/>
To: <mail /><newline />
Ref: your website<newline />
<newline />
Hello <givenname />,<newline />
<newline />
I visited your website a while ago (<website />
and I saw you added
kind regards,<newline />
Bruno Lowagie
</letter>