Html iText生成的PDF表格的圆角边框

Html iText生成的PDF表格的圆角边框,html,css,pdf,itext,Html,Css,Pdf,Itext,我正在使用iText库将HTML文件转换为PDF。我想要一张圆角的桌子。下面是我正在使用的CSS 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-rad

我正在使用iText库将HTML文件转换为PDF。我想要一张圆角的桌子。下面是我正在使用的CSS

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;
}

我可以在浏览器中看到圆角。但是,当我生成PDF时,圆角不存在。如有任何帮助,将不胜感激。

将HTML转换为PDF时不支持此功能。圆角边框是使用单元格事件实现的(这些事件不是由HTMLworker或XML Worker创建的)。@BrunoLowagie感谢您的响应。我是通过在桌子背景中设置圆角来实现的。然而,我还有一个困难,我想听听你们的意见。我在数据库中有一个以字节数组形式存储的图像。现在,我想在pdf文件中呈现此图像(即,在使用iText库转换为pdf的HTML文件中)。我很感激您的想法。@DarshanMehta itext库不支持它,就像前面所说的那样。但我尝试了这个方法并成功了:但是,要改变CSS使其工作起来真的是一件非常痛苦的事情。我最终决定更改效果完美的渲染