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.

 

> 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

 

     

 

 

Reply via email to