You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
useVariableBorder(true) causes a cell to render its border slightly inward compared to a nonVariableBorder counterpart (See image below)
To Reproduce
This code was used to generate the image above
PdfPTable table = new PdfPTable(2);
table.setWidthPercentage(100f);
PdfPCell cell = new PdfPCell(new Phrase("Variable Borders"));
cell.setBorderWidth(5);
cell.setUseVariableBorders(true);
cell.setUseBorderPadding(true); //This is to prevent the text from getting squashed by the border - The issue is replicable without this line
PdfPCell normalCell = new PdfPCell(new Phrase("Non Variable Borders"));
normalCell.setBorderWidth(5);
normalCell.setUseBorderPadding(true);
normalCell.setUseBorderPadding(true);
table.addCell(cell);
table.addCell(normalCell);
doc.add(table);
Expected behavior
I would expect both of these cell borders to be identical, as the only thing differing from these cells, aside from the text, is the isVariableBorders boolean
System
OS: Windows
Used font: Default font
OpenPDF version: 2.0.3
Your real name
Steven Streasick
The text was updated successfully, but these errors were encountered:
Describe the bug
useVariableBorder(true) causes a cell to render its border slightly inward compared to a nonVariableBorder counterpart (See image below)
To Reproduce
This code was used to generate the image above
Expected behavior
I would expect both of these cell borders to be identical, as the only thing differing from these cells, aside from the text, is the isVariableBorders boolean
System
Your real name
Steven Streasick
The text was updated successfully, but these errors were encountered: