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-class css3, , 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

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -