I am using iText library to convert the HTML files into PDF. I want a table to have rounded corners. Following is the CSS that I am using.
table {
border-spacing: 0;
}
th, td {
border: 1px solid #000;
padding: 0.5em 1em;
}
/* the first 'th' within the first 'tr' of the 'thead': */
tr:first-child td:first-child {
border-radius: 0.6em 0.6em 0 0;
}
/* the last 'th' within the first 'tr' of the 'thead': */
tr:first-child td:last-child {
border-radius: 0.6em 0.6em 0 0;
}
/* the first 'td' within the last 'tr' of the 'tbody': */
tr:last-child td:first-child {
border-radius: 0.6em 0.6em 0 0;
}
/* the last 'td' within the last 'tr' of the 'tbody': */
tr:last-child td:last-child {
border-radius: 0 0 0.6em 0.6em;
}
I am able to see the rounded corners in the browser. However, when I generate PDF, the rounded corners are not present. Any help would be appreciated.