[iText-questions] different bottom border for different PdfPCell in PdfPTable

2009-06-05 Thread sujikin
Hi, The below test tries to draw different bottom border for different PdfPCell in PdfPTable But in practise draws one, draws another and never draws the previous one..keep on drawing second one.. Any clue why so? public class PdfGeneratorTest extends TestCase { class DottedLine imple

[iText-questions] Splitting a BigTable

2009-05-31 Thread sujikin
I have a table like the below AA BB CC DD EE FF GG HH II JJ KK LL MM NN OO PP I want to split it into four squares of 2 rows and 2 columns and place them on 4 pages public void testMatrix(){ String[][] data = { {"AA", "BB",

[iText-questions] Doubt in PdfPCellEvent

2009-05-31 Thread sujikin
In the below test case, I have applied the cell event to the first row, but it affects all the rows and cells except on which it is called. class DashExample implements PdfPCellEvent { public void cellLayout(PdfPCell cell, Rectangle position, PdfContentByte[] canv

Re: [iText-questions] Doubt in PdfPCellEvent

2009-05-31 Thread sujikin
Hi, Below is the corrected code. There was no use of position variable and the border of other cells were not set to NO_BORDER earlier. class DashExample implements PdfPCellEvent { public void cellLayout(PdfPCell cell, Rectangle position, PdfContentByte[] canva

[iText-questions] Coloring the top border of PdfPCell

2009-05-26 Thread sujikin
Hi, I am trying to color the top border of a PDFPCell using the below code, PdfPCell cell = new PdfPCell(new Paragraph("header with colspan 3")); cell.setBorder(Rectangle.NO_BORDER); cell.setBorder(Rectangle.LEFT);

[iText-questions] Unable to set font color in phrase of PdfPCell

2009-04-10 Thread sujikin
Hi, I am trying to set color in phrase of PdfPCell using below code. PdfPCell cell = new PdfPCell(); Phrase phrase = new Phrase(String.valueOf(1942)); phrase.setFont(getFont(yearNum)); cell.setPhrase(phrase); tab