public void cellLayout(PdfPCell cell, Rectangle rect, PdfContentByte[] canvas) { PdfContentByte cb = canvas[PdfPTable.BACKGROUNDCANVAS]; cb.roundRectangle( rect.getLeft() + 1.5f, rect.getBottom() + 1.5f, rect.getWidth() - 3, rect.getHeight() - 3, 4); cb.setCMYKColorFill(0x00, 0x00, 0x00, 0x00); cb.fill(); }
public void cellLayout(PdfPCell cell, Rectangle rect, PdfContentByte[] canvas) { PdfContentByte cb = canvas[PdfPTable.LINECANVAS]; cb.roundRectangle( rect.getLeft() + 1.5f, rect.getBottom() + 1.5f, rect.getWidth() - 3, rect.getHeight() - 3, 4); cb.setLineWidth(1.5f); cb.setCMYKColorStrokeF(color[0], color[1], color[2], color[3]); cb.stroke(); }
public void tableLayout( PdfPTable table, float[][] width, float[] height, int headerRows, int rowStart, PdfContentByte[] canvas) { PdfContentByte background = canvas[PdfPTable.BASECANVAS]; background.saveState(); background.setCMYKColorFill(0x00, 0x00, 0xFF, 0x0F); background.roundRectangle( width[0][0], height[height.length - 1] - 2, width[0][1] - width[0][0] + 6, height[0] - height[height.length - 1] - 4, 4); background.fill(); background.restoreState(); }