mrafiqk/html-pdf-node

Page boundaries can break lines apart

Opened this issue · 4 comments

I'm having a meltdown over this one:

image

It does not show up on very simple documents. Page breaks work properly most of the time so I was thinking something like using tables as layout could break this but then I remade it into simple divs and the problem is still present.

The text length is entirely user data so I cannot control it.

Have you resolved this issue somehow? @vinczemarton

No, we made the design more concise so there is less chance that we are generating multiple pages. I'm still balding because of this though.

@vinczemarton check out html-pdf, does the same thing with practically the same code, it worked for me while html-pdf-node didn't. (I had issues with puppeteer on alpine)

Unfortunately html-pdf uses phantomjs with awful rendering issues (like weird dpi, bold charaters not working out of the box, flexbox not working). We might go for it still but it is just painful