Sergio Lopez Rodriguez writes: > I had a look on the tutorial (maybe it wasn't deep enough :-( ...) about > templates and page events (Chap12 and example). The problem I have it's i > must put the "NumbrePage/TotalPages" inside a box. I think the easiest it's > to use a Table (ok, i'm a little lazy to draw lines...) but as I have to set > the PageNumber in the "onEndPage", and the Total Number Page in > "onCloseDocument", there's no way to add content totable that I intend to > add to the template and i created when the document opens, is there? So the > question is ... is possible to add tables to a template and add when is > necessarry content to a cell? I guees no .. Otherwise ... Am i forced to > draw lines to simulate a box?
You could add a PdfPTable in onEndPage with the currentNumber and the slash and then add the total number of pages in onCloseDocument and try to match it inside the PdfPTable... This is more difficult than using the method PdfContentByte.rectangle(), but if you want it that way, you can. _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions