在使用xhtmlrenderer把html转换为PDF后,HTML内容显示不全。 后通过在 html/ ftl 模板页面中增加@page样式解决了这个问题。 @page { size: A4; margin: 0; }