CSS Paged Media :Last Page Selector

CSS paged media total number of pages minus cover pages

The discussion on https://www.princexml.com/forum/topic/504/reset-the-pages-plural-counter takes another approach using something like target-counter(url(#end), page) instead of "pages" to get the total pages number.

Use counter-reset: page 1; on the the first real page, and then add a <div id="end"> </div> on the last real page.

content: "Page " counter(page) " of " target-counter(url(#end), page);
should return the with the values you want, excluding the back cover.

Footer on last printed page

Try to position the body relative and the footer absolute:

body {
position: relative;
}
#printfooter {
position: absolute;
bottom: 0;
}

With CSS 3 Paged Media module you could use something like this:

@page:last {
@bottom-center {
content: "…";
}
}

Selecting the last element on page (paged media)

Prince's founder and lead programmer has stated in their forum that this is not possible without JavaScript and running the document twice through Prince. Sorry :(

https://www.princexml.com/forum/topic/3672/how-to-select-the-last-tr-element-of-a-page-when-it-breaks



Related Topics



Leave a reply



Submit