How to setup the page master based on the content of your html: the named page
There could be pages in your book that may need their own, more specific layout: different background, different margins, and even different styles from the main rule. You can use what is called “named pages” to define this. Based on your HTML, you can bind a specific layout to any content.
This is a companion discussion topic for the original entry at https://www.pagedjs.org/documentation/08-named-pages/