You are viewing an old version of this page. Return to the latest version.
Customized PDF Output
-
- Last edited 4 years ago by MLR
-
< Manual:Extension | BlueSpiceBookshelf
Revision as of 10:17, 11 November 2020 by Mlink-rodrigue (talk | contribs)
How to adjust page breaks in multi-page PDFs.
Adjusting page breaks
By default, each chapter and sub-chapter in a Book-PDF is started on a new page. To avoid these page breaks and to create a continuous chapter flow, an administrator can add the following code to the page MediaWiki:Common.css:
/*PDF book or PDF with subpages - no page breaks between chapters*/
.bs-page-content { page-break-after: avoid; }
If you want to start the main chapters on separate pages, use this code instead:
/*PDF book or PDF with subpages - page break only after chapter levl 1 */
.bs-page-content { page-break-after: avoid; }
.bs-page-content.booklevel-1 { page-break-before: always; }
You can add further chapter levels as needed:
/*PDF book or PDF with subpages - page breaks after chapter levels 1 and 2*/
.bs-page-content { page-break-after: avoid; }
.bs-page-content.booklevel-1, .bs-page-content.booklevel-2 { page-break-before: always; }
Note: These settings apply both to the PDF output of books and to the PDF export which includes linked pages or subpages of a wiki page.