Genjiro wrote:
> When I
> add an image to the template like
> "templateImageFront.addImage(imageFront,scX,0,0,scY,500,500);" for what
> position are the 2.,3.,5. and 6. parameter?

The parameters are part of the transformation matrix.
It's algebra: you have scaling, rotation and translation.
Look it up in the tutorial, PDF Reference or iText in Action.

> If I like to use the template several times in my document. Do I have to
> create first the template and then call the  template several times in my
> document?

Create a PdfTemplate object once and reuse the instance.
It doesn't matter when you add content to the PdfTemplate.
For instance: in the "Page X of Y" example, a PdfTemplate
is used for the Y value. Of course you don't know this value
(the total number of pages) until you have finished the
complete document. Fortunately you can add Y to the template
AFTER you have added the template itself to all previous
pages.

I don't know if this answers your questions.
I am just surprised you are asking this, because this
information can be found almost everywhere on the net,
and certainly in the book.
br,
Bruno

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to