I have a problem with the fixed margin on left and right of a table.
I want remove that margin and use all the sheet without margin or padding. How i can do ?
I've just tryed this but doesn't work for me:
cell.setPaddingLeft(0);
cell.setBorderWidthLeft(0);
cell.setLeft(0);
This works for me, but the borders of the cell , don't follow the text (Look at the table in bottom)
cell.setPaddingLeft(-50);
This is a part of my code :
Font fontStandard = FontFactory.getFont("Arial", 8);
int w[] = { 50, 50 };
PdfPTable tableInner = new PdfPTable(5);
tableInner.setWidths(w);
cell = new PdfPCell(new Phrase("PADDING -50", fontStandard));
cell.setHorizontalAlignment(PdfPCell.ALIGN_LEFT);
/******/
//cell.setPaddingLeft(0);
//cell.setBorderWidthLeft(0);
//cell.setLeft(0);
cell.setPaddingLeft(-50);
/******/
tableInner.addCell(cell);
document.add(tableInner);

