Re: [iText-questions] Antwort: Pdf Table footer and bottom margin

2012-01-24 Thread dpmihai
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

Re: [iText-questions] Antwort: Pdf Table footer and bottom margin

2012-01-24 Thread dpmihai
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

[iText-questions] Pdf Table footer and bottom margin

2012-01-23 Thread dpmihai
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();

[iText-questions] Image inside PdfPTable (iText 5.1.1 versus iText 5.0.6)

2011-06-29 Thread dpmihai
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

[iText-questions] Rowspan BUG

2009-12-09 Thread dpmihai
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