我正在使用剥皮碟
java库.
我正在尝试在生成的pdf中添加页脚.
目标是在每个页面上使用相同的页脚,在最后一页上使用不同的内容.
html>
@page {
size: 8.5in 11in;
margin-bottom: 1in;
@bottom-left {
content: element(footer_one);
}
@bottom-right{
content: element(footer_two);
}
@bottom-center{
content: element(footer_rights);
}
}
#footer_two {position: running(footer_two); }
#footer_one {position: running(footer_one); }
#footer_three {position: running(footer_three);}
#footer_two, #footer_one, #footer_three { margin: 0 padding:0;}
#footer_three { border-top: 2px solid #3390FF;}
Whole body content
我几天都在挣扎,网上发现的任何建议都不够好.
我正在努力
@page:last {}
或者:
@bottom-left {
content: element(footer_one, last-except);
}
@bottom-right{
content: element(footer_two, last-except);
}
但似乎:最后一个伪选择器不起作用.
最好的方法是在最后一页上有一个完全不同的单脚,其中包括这三个页脚的内容.
我只能在最后一页添加页脚,但我不能禁用那些简单的页脚形成前一页.
也许还有其他一些方法?
我会感激任何帮助.