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
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",
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
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
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);
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