I am using Rotativa as a wrapper for wkhtmltopdf
in order to render an invoice or multiple page report to pdf.
However, when styling the document I encountered two problems.
- The
@page
element does not seem very compatible, as when I write for example @page:first, VS2013 complains that it is not a valid pseud-class forcss3
, and also I see no effect in the results, both in chrome and in the resulting pdf - When using a rule in the body of the document (or a wrapper element, for that matter) stating that the height is 297mm (I set A4 in the
@page
element and in the wkhtmltopdf parameter for page size), I see that the element does not reach the end of the document. Hand tunning the value gives me a practical page height of 351mm.
What I would like to have is a multiple page report where each page has in its bottom a summary of the running total of that page, and a grand total in the last page. So basically I need an element which I can position in the bottom and then I guess I have to manually tune how many rows fit each page.