That can happen if the template covers the text although I don't understand
why regular Table would be affected. Please post a complete small runnable
code exhibiting the problem.
Best Regards,
Paulo Soares
----- Original Message -----
From: "Carmona Perez, David" <[EMAIL PROTECTED]>
To: "Itext-Questions (E-mail)" <[EMAIL PROTECTED]>
Sent: Friday, August 01, 2003 13:06
Subject: [iText-questions] PdfPTableEvent and Templates
> Hi all,
>
> During a PdfPTableEvent, I add templates. The effect is that all the
> tables (including regular Table's in addition to PdfPTable's) are
> rendered blank except the border.
>
> class EventsTblIndice implements PdfPTableEvent {
> public void tableLayout(PdfPTable table, float[][] widths,
> float[] heights,
> int headerRows, int rowStart, PdfContentByte[] canvases)
> {
> PdfContentByte cb = canvases[PdfPTable.TEXTCANVAS];
> for (int i = 0; i < table.size()-rowStart; i++) {
> cb.addTemplate(myTemplates[i], widths[0][1],
> heights[rowStart+i+1]);
> }
> }
> }
>
> If I comment out the cb.addTemplate() line, everything works ok.
>
> The templates are empty, nothing is written in them, to keep things
> simpler.
>
> Does anyone know the cause?
>
> Thanks in advance.
> --------
> David
>
>
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions