WKHTMLTOPDF: How to disable header on the first page

后端 未结 5 1574
终归单人心
终归单人心 2021-02-06 03:39

wkhtml doesn´t repeat table elements \"th\" on every page like it should. So I thought it could be possible to simply use the --header-html option and add the table headers manu

5条回答
  •  梦如初夏
    2021-02-06 04:19

    If you can split the first page alone as a separate html, you can do this by using 'cover' in WKHTMLTOPDF.

    PDFKit.new(url, :header_html => header_url, :cover => cover_url).
    

提交回复
热议问题