Hi Paulo,
Yes I made it an image but now it won't update anymore from
onCloseDocument(). I need to write the total number of pages. If I don't
make it an image and I put it at a fix position it works. But I need to put
it in a table...
This is the code :
in onEndPage():
Image img = null;
try {
img = Image.getInstance(template);
} catch (Exception e) {
}
Chunk ck = new Chunk(img, 0, 0);
Phrase ppp = new Phrase(text, font);
ppp.add(ck);
cel = new PdfPCell(ppp);
cel.setBorder(Rectangle.NO_BORDER);
cel.setHorizontalAlignment(Element.ALIGN_LEFT);
cel.setPaddingTop(4);
cel.setPaddingBottom(4);
footertable.addCell(cel);
in nCloseDocument():
template.beginText();
template.setFontAndSize(bf, 6);
template.showText(String.valueOf(writer.getPageNumber() - 1));
template.endText();
Any ideas ?
Thx,
Cezar
----- Original Message -----
From: "Paulo Soares" <[EMAIL PROTECTED]>
To: "Cezar FLOROIU" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Sunday, November 09, 2003 2:57 AM
Subject: Re: [iText-questions] PdfTemplate in a PdfPCell
> Make it an image.
>
> Best Regards,
> Paulo Soares
>
> ----- Original Message -----
> From: "Cezar FLOROIU" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Saturday, November 08, 2003 15:23
> Subject: [iText-questions] PdfTemplate in a PdfPCell
>
>
> > Hi
> >
> > Is it possible to put a PdfTemplate in a PdfPCell ?? If so, how ?
> >
> > Thx
> > Cezar
> >
> >
> > -------------------------------------------------------
> > This SF.Net email sponsored by: ApacheCon 2003,
> > 16-19 November in Las Vegas. Learn firsthand the latest
> > developments in Apache, PHP, Perl, XML, Java, MySQL,
> > WebDAV, and more! http://www.apachecon.com/
> > _______________________________________________
> > iText-questions mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/itext-questions
> >
>
>
-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions