HTML to PDF: CSS for multiple-page report (wkHtmlToPdf) -
i using rotativa wrapper wkhtmltopdf
in order render invoice or multiple page report pdf.
however, when styling document encountered 2 problems.
- the
@page
element not seem compatible, when write example @page:first, vs2013 complains not valid pseud-classcss3
, , see no effect in results, both in chrome , in resulting pdf - when using rule in body of document (or wrapper element, matter) stating height 297mm (i set a4 in
@page
element , in wkhtmltopdf parameter page size), see element not reach end of document. hand tunning value gives me practical page height of 351mm.
what have multiple page report each page has in bottom summary of running total of page, , grand total in last page. need element can position in bottom , guess have manually tune how many rows fit each page.
Comments
Post a Comment