daahaus.blogg.se

Custom word borders
Custom word borders











custom word borders

Table.addCell(new Cell(). Table.addCell(new Cell().add(new Paragraph("Hello"))) Private class DottedLineTableRenderer extends TableRenderer )) Customize the border by clicking on a side of the border in the 'Preview' section and selecting the 'Style,' 'Color' and 'Width' of the border. Table.addCell(new Cell().add(new Paragraph("A3")).setBorder(Border.NO_BORDER)) Table.addCell(new Cell().add(new Paragraph("A2")).setBorder(Border.NO_BORDER)) Table.addCell(new Cell().add(new Paragraph(s)).setBorder(Border.NO_BORDER)) tNextRenderer(new DottedLineTableRenderer(table, new Table.RowRange(0, 0))) Table table = new Table(UnitValue.createPercentArray(3)).useAllAvailableWidth() Here is the code I have that works for tables that fit into a single page, but if table is spanned across several pages the code does not work anymore: PdfDocument pdfDoc = new PdfDocument(new PdfWriter(dest)) I want to add some randomness to table borders like in the following screenshot:

custom word borders custom word borders

Previously I asked a question about drawing custom table borders: Draw custom borders for table spanning across more than one page in itext7Īnd there an answer was provided with a way to draw custom borders, but it does not allow to affect the complete row or column line (for example to tilt it slightly) because cell borders are drawn separately for each cell.













Custom word borders