Is it possible to include multiple @page elements in a single HTML file? I am interested in this approach for printing various documents:
For example, there are multiple invoices, each consisting of multiple pages. The first page of each invoice needs to have a different top margin (1in) compared to the following pages of the same invoice (3in).
Adding @page first { will change the top margin for the first page, but the issue arises when a new invoice begins after a few pages. The new invoice requires a top margin of 1in, but being a subsequent page, it defaults to 3in.
An ideal solution would be to have multiple @page declarations, allowing for the creation of a new @page at the beginning of each new invoice to specify the desired 1in top margin.
I hope this explanation is clear, and I appreciate any assistance you can provide. Thank you!