Only one thing to add, because I do not take widths into account.
If you have a cell footer with text which has to wrap on more rows, the
footer height won't be correct.
But this is not my case, because in footer I add just simple things like
date, page number, small text .
--
View this messag
Thank you for the response.
I choose to compute first my footer table height.
I create the document like new Document(..., BOTTOM + footerHeight);
I wrote the footer at at Y = document.bottomMargin() (because this now
contains the footer height set at document creation)
Only one problem I encoun
Hello.
I have a Document created with LEFT, RIGHT, TOP and BOTTOM margins and a
dynamic footer which I construct like a PdfPTable on PdfPageEventHelper:
public void onEndPage(PdfWriter writer, Document document) {
PdfPTable footer = createMyFooterTable();
A scaled image inside PdfPTable is shown at wrong position in 5.1.1 version
(it is not contained inside the cell). Same example works fine in 5.0.6
version.
import java.awt.GraphicsEnvironment;
import java.awt.Toolkit;
import java.io.ByteArrayOutputStream;
import java.io.FileInputStream;
import ja
I have following simple example :
| X | -> X cell has colspan=3
|Y| Z| -> Z cell has colspan=2
If i use rowSpan = 2 for first cell the output is wrong : like | X | Y |
Document document = new Document(PageSize.A4);
PdfWriter.getInstance(docume