node-html-pdf icon indicating copy to clipboard operation
node-html-pdf copied to clipboard

Really wide HTML table to PDF

Open jungalwala opened this issue 7 years ago • 4 comments

I have a table that has lots of columns when I use html-pdf it truncates the columns on the right, is there a way the overflow on the right gets rendered onto another page (like when you are printing a super wide sheet in excel)?

jungalwala avatar Jan 07 '18 17:01 jungalwala

have you tried setting the max-width, overflow, etc. of the table in the css? i'm about to begin testing this and have the same question. basically, i want to know if i should just style everything up front and leave as little as possible to node-html-pdf's interpretation. any thoughts?

trickmeyer avatar Jan 11 '18 17:01 trickmeyer

try below style table{ word-break: break-word; }

lichangwei avatar Jul 18 '18 03:07 lichangwei

I am having the same issue as I have statements of account and it is listing in table row structure. Page first has some content in a row and ends it in starting of the second page after header.

Is it possible to give some configuration like how many row it should display in a table structure per page ?

nitishthakrarsa avatar Oct 31 '18 14:10 nitishthakrarsa

I have the same issue, And the result pdf was incompleted display. Did you finally solve this problem? Is there a way to make the content adaptive to pdf pages?

ltinerary avatar Feb 28 '22 02:02 ltinerary