My document has multiple divs with a horizontal line between each. In my stylesheet I use a class on all divs except the last to set a bottom border. This achieves the horizontal line nicely between all divs for the web view.
When converting to PDF my requirement is to keep the horizontal line between divs on the same page (note that the divs don't break across pages). With the current stylesheet this leaves a horizontal line at the bottom of each page. I need to be able to either suppress the bottom border on the last div of each page, or start with no border and as the document is processed add the border between divs on the same page.
I though of using prince-script function, testing current div page and next div page. However prince-script only seems to be callable from style content attribute and any DOM modifications in the script don't seem to be visible to the layout engine (I tried adding a class to the div and also tried just adding the bottom-border style to the div).
Hoping someone can point me in the right direction.
Thanks
When converting to PDF my requirement is to keep the horizontal line between divs on the same page (note that the divs don't break across pages). With the current stylesheet this leaves a horizontal line at the bottom of each page. I need to be able to either suppress the bottom border on the last div of each page, or start with no border and as the document is processed add the border between divs on the same page.
I though of using prince-script function, testing current div page and next div page. However prince-script only seems to be callable from style content attribute and any DOM modifications in the script don't seem to be visible to the layout engine (I tried adding a class to the div and also tried just adding the bottom-border style to the div).
Hoping someone can point me in the right direction.
Thanks