Abhishek Srivastava wrote:

> Thanks Bruno,
>  
> The image approach works for me.
>  
> However I want to compare it to the addTemplate apporach.
>  
> if a co-ordinate is X1, Y1 in portait, then it becomes Y1, 
> PageSize.A4.Width - X1 when the page becomes landscape.
>  
> Given the above, what transformation matrix should be applied? so that 
> the template is added correctly?

The problem you had is that the template is rotated outside the page.
I don't have the time to look it up right now, but it is just a matter of
applying some high school algebra. You can find the formulas here:
http://itextdocs.lowagie.com/tutorial/directcontent/coordinates/index.html#transform
br,
Bruno

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to