Skip to content

Commit 85ea3d3

Browse files
committed
Add page-break example
1 parent d92df33 commit 85ea3d3

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

readme.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,18 @@ In your templates, set the UTF-8 Metatag:
4343

4444
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
4545

46+
### Tip: Page breaks
47+
You can use the CSS `page-break-before`/`page-break-after` properties to create a new page.
48+
49+
<style>
50+
.page-break {
51+
page-break-after: always;
52+
}
53+
</style>
54+
<h1>Page 1</h1>
55+
<div class="page-break"></div>
56+
<h1>Page 2</h1>
57+
4658
### License
4759

4860
This DOMPDF Wrapper for Laravel is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)

0 commit comments

Comments
 (0)