Why doesn't wkhtmltopdf page-break-after have any effect?

后端 未结 6 2093
鱼传尺愫
鱼传尺愫 2021-01-30 16:34

I\'m using wkhtmltopdf 0.10.0 rc2 for Mac

I have an html like this one :



  
    

        
6条回答
  •  萌比男神i
    2021-01-30 17:16

    Possibly unrelated as your pdf generated ok with an earlier version of wkhtmltopdf. Either way, I had similar issues with page breaks not being applied correctly. My problem was parent elements of the page-breaked element having an overflow other than visible. This fixed my issue:

    * {
      overflow: visible !important;
    }
    

    Of course, you can be more specific about the tags this applies to ;)

提交回复
热议问题