Skip to content

Paginated account statement

Download statement.html

This sample contains 22 synthetic line items and a total of $550.00. The CSS uses A5 pages, a repeating account header, an automatically repeated table header, and page numbers in the footer.

Render the sample

After installing the CLI, put the file in your working directory and run:

pressjet check statement.html
pressjet render statement.html -o statement.pdf

You can also send it unchanged to the HTML endpoint. Open the generated PDF and check that the column names repeat, the page count in the footer matches the file, and the total only appears after the last row.

Adapt the statement

Replace the sample rows with the rendered output from your application. Keep the thead markup and the @page rules. If your values wrap, test the longest date, currency amount, and item name. Recheck the last page after changing the font or column widths. Pagination guide