cognitom / paper-css

Paper CSS for happy printing
https://www.npmjs.com/package/paper-css
MIT License
2.51k stars 342 forks source link

How to print two A4 paper in A3 Landscape? #46

Closed NaufalRizqullah closed 1 year ago

NaufalRizqullah commented 1 year ago

Hello. Previously, I wanted to thank you for the paper-css library.

I want to ask how can I print on two A4 paper in one A3 landscape paper? Like this

Maybe someone can help? Thank you

NaufalRizqullah commented 1 year ago

and then, i already solve this, by using table for seperating each papper.

<script>
     table .sheetWidthA4 {
            vertical-align: top;
            width: 210mm;
            padding-top: 10mm;
            padding-left: 10mm;
            padding-right: 10mm;
        }
</script>
<body>

    <section class="sheet padding-10mm">
        <table>
            <tr>
                <td class="sheetWidthA4">
                    ... Page 1 A4
                </td>

                <td class="sheetWidthA4">
                    ... Page 2 A4
                </td>
            </tr>
        </table>

    </section>