bthorington wrote:
> /*this is the template way... */
> stamp.getOverContent((int) 
> textPos[0]).addTemplate(page, textPos[1], textPos[2]);
> 
> /*  or you can do it by image...  this lets you 
> resize if you want */
> Image img = Image.getInstance(page);
> img.setAlignment(Image.ALIGN_CENTER);
> img.setAbsolutePosition(textPos[1],
>    textPos[2]);
>    stamp.getOverContent((int) 
>    textPos[0]).addImage(img);

Thanks for the feedback; for the sake of completeness,
this is a third way (written from memory):

ColumnText column = new ColumnText(stamp.getverContent(page));
column.setSimpleColumn(textPos[1], textPos[2], textPos[3], textPos[4]);
ArrayList objects = HTMLWorker.parseToList(file, styles);
for (int k = 0; k < objects.size(); ++k)
   column.addElement((Element) objects.get(k));
column.go();

-- 
This answer is provided by 1T3XT BVBA

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar

Reply via email to