Forum How do I...?

Change Styling of Last element on a page

vgvgvg
Hi,

I saw a post from 2016 where it said the only way this is possible is by running prince twice. Were there any changes or is this still best practice?

Thank you,
Kind Regards,
Valentin
vgvgvg
to give more context: what i want to do is i have a web page page with a border around the page. This page gets split in multiple pages when converting to pdf but the frame is then also split. I know I could use box-decoration-break: clone; but the problem is the border is not a single border but are multiple divs stuck together like legos but still forming a single frame
mikeday
This probably requires using JavaScript with multiple passes:

https://www.princexml.com/doc/cookbook/#the-multi-pass-solution

Which is a more convenient way of running Prince twice.