Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

How to add additional pages? #210

Open
foRsxs opened this issue Sep 16, 2021 · 2 comments
Open

How to add additional pages? #210

foRsxs opened this issue Sep 16, 2021 · 2 comments

Comments

@foRsxs
Copy link

foRsxs commented Sep 16, 2021

Hi there!
How to generate PDF with 2-3 pages ? I'v tried to make 2 html in 1 view - but seems it's not right way.
Pls help)

@farshadff
Copy link

have you found any any solution for that problem ?

@Remls
Copy link

Remls commented Mar 27, 2022

This has worked for me:

<style>
    .page-break {
        page-break-after: always;
    }
</style>

{{-- Contents of first page --}}
<p class="page-break"></p>
{{-- Contents of second page --}}
<p class="page-break"></p>
{{-- Contents of third page ... --}}

Edit: The custom tag <pagebreak /> also works, and is far more customizable:

{{-- Contents of first page --}}
<pagebreak />
{{-- Contents of second page --}}
<pagebreak />
{{-- Contents of third page ... --}}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants