"

PDF Exports

Create Section and Page Breaks in PDF Exports

Pressbooks provides two special classes which can be used to produce section breaks in your PDF exports:

  • class=”section-break” can be applied to an element to create a section break
  • class=”section-break-page” can be applied to an element create a section break which includes a page break after the section break

You can also force a page break in your PDF exports before or after any block-level element (like a paragraph or heading) by adding class="page-break-before" or class="page-break-after" to the desired element.

<h2 class="page-break-before">A heading which will have a page break before it is rendered</h>

<p class="page-break-after">This is a paragraph which will have a page break after it is rendered!</p>

Credit: Apply Special Formatting in Pressbooks Guide CC BY

License

Icon for the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License

NSCC Pressbooks Guide Copyright © 2024 by Nova Scotia Community College is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License, except where otherwise noted.

Share This Book