Git Product home page Git Product logo

Comments (11)

scurker avatar scurker commented on August 17, 2024 4

Sitting the proper css rules seemed to work for me:

thead {
  display: table-header-group;
}

tr {
  page-break-inside: avoid;
}

Headers repeated correctly without overlap. One trick is that you can't have any of those rules inside of a @print media rule, as it seems that it can't calculate the repeating headers correctly when doing so.

from node-html-pdf.

haschu avatar haschu commented on August 17, 2024 2

Same here. Did you find a workaround in the meantime @sonu27?

from node-html-pdf.

IonicaBizau avatar IonicaBizau commented on August 17, 2024

Is there any known solution?

from node-html-pdf.

agilbert314 avatar agilbert314 commented on August 17, 2024

Having the same issue here.

from node-html-pdf.

kodamirmo avatar kodamirmo commented on August 17, 2024

Any luck?

from node-html-pdf.

IonicaBizau avatar IonicaBizau commented on August 17, 2024

@kodamirmo In the latest release of nodeice, I switched to the phantom-html-to-pdf package by @pofider which doesn't have this bug. ✨

from node-html-pdf.

morficus avatar morficus commented on August 17, 2024

@IonicaBizau and @kodamirmo .... phantom-html-to-pdf has the same bug if you set the orientation the landscape :-(

pageSize: {
     orientation: 'landscape'
}

from node-html-pdf.

marcbachmann avatar marcbachmann commented on August 17, 2024

That maybe works. #36 (comment)

from node-html-pdf.

mdelorimier avatar mdelorimier commented on August 17, 2024

I seem to be unable to get this to work on my end. A working example of this would be greatly appreciated :)

from node-html-pdf.

sonu27 avatar sonu27 commented on August 17, 2024

I've been unable to get it to repeat headers, using v2.1 of this lib. Any update?

This might be related: ariya/phantomjs#13324 ariya/phantomjs#13524

from node-html-pdf.

rohitrelay avatar rohitrelay commented on August 17, 2024

Hi,

table thead section is not repeating after page break. I am using simple html.

header
data

Is anyone found solution?

Regards,
Rohit

from node-html-pdf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.