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

 

Reply via email to