飞翔pdf生成html,html – 最后一页的页脚,而飞碟的pdf生成

我正在使用剥皮碟

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

}

但似乎:最后一个伪选择器不起作用.

最好的方法是在最后一页上有一个完全不同的单脚,其中包括这三个页脚的内容.

我只能在最后一页添加页脚,但我不能禁用那些简单的页脚形成前一页.

也许还有其他一些方法?

我会感激任何帮助.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值