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
Shared Styles Across Components in an Angular 2 App
Cause Line to Wrap to New Line After 100 Characters
Make Second Div Appear Above First, Without Absolute Position or Changing HTML
How Are Scrollbars in New Google Docs UI Styled (Esp. the Arrow Buttons)
Center Output (Plots) in the Notebook
Bind Angularjs Variables into CSS Syntax
How to Remove Letter-Spacing for the Last Letter of an Element in CSS
How to Disable Automatic Links Coloring Without Selecting a Color
Image Mysteriously Ignoring Max-Width in Firefox & Ie
Are CSS Custom Properties Global Across Linked CSS Documents
What's the CSS Filter Alternative for Firefox
Getting Application.CSS to Override Bootstrap
* { Box-Sizing: Border-Box; }:To Border-Box or Not to Border-Box All Elements
Mobile Orientation Change Not Applying CSS
How to Simply Parse a CSS Like (!) File in My Qt Application