You can't use document.add() inside a page event.

Best Regards,
Paulo Soares

----- Original Message ----- 
From: "Kurakula, Suneetha (HCF)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 12, 2004 19:25
Subject: Re: [iText-questions] set table as footer to document


>   Hi All,
>
>
>
>   Thankyou very much for response.
>
>   I tried to add table at the end of document or( at the bottom of last
page
> ) this way. My logo should appear only once at the end of last page.
>
>
>
>            Table footertable = helper.getFooterTable(path);
>
>          Dimension footdimension = footertable.getDimension();
>
>
>
>      public void onCloseDocument(PdfWriter writer, Document document)
>
>        {
>
>                PdfContentByte cb = writer.getDirectContent();
>
>               // I added this to move position to end on page .
> FootDimension are table dimensions
>
>                cb.moveTo(document.left(), (document.bottom()-
> footdimension.height));
>
>                         if (!writer.fitsPage(footertable)) {
>
>                                     document.newPage();
>
>                         }
>
>                         document.add(footertable);
>
>     }
>
>
>
> Could any one please suggest me.
>
>
>
> Thanks
>
>
>
>
>
> > Hi All,
>
> >
>
> >
>
> >
>
> > My table contains an image and some text that needs to be displayed as
>
> logo
>
> > of company at the end of  each page.
>
> >
>
> > Can anyone please let me know
>
> >
>
> > 1. How I can set table as footer of document.
>
>
>
> See the example headers_and_watermarks.java at
>
> http://prdownloads.sourceforge.net/itextpdf/examples-133.zip
> <http://prdownloads.sourceforge.net/itextpdf/examples-133.zip> .
>
>
>
> > 2. How can I make table borderless.Right now I am using
>
> > setBorder(Rectangle.NO_BORDER).But it is still showing border.
>
> >
>
>
>
> Also remove the borders from the cells.
>
>
>
> Best Regards,
>
> Paulo Soares
>
>
>
>
>
>
>
>
>
>



-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to