I am trying to do page break in LWC. But it is not working. Below is the code . How to do page break in lightning while printing the page to pdf.
<template>
<div>First Page<<div>
<lightning-layout>
<lightning-layout-item>
First Page
</<lightning-layout-item>
</<lightning-layout>
</div>
<div style="page-break-before: always;">Secondalways;">
page< <lightning-layout>
<lightning-layout-item>
Second Page
</<lightning-layout-item>
</<lightning-layout>
</div>
<lightning-button label="Print" title="print" onclick={printpreview} class="printbutton"></lightning-button>
<lightning-button label="Back" title="Back to record" onclick={back} class="back"></lightning-button>
</template>