rdvojmoc / DinkToPdf

C# .NET Core wrapper for wkhtmltopdf library that uses Webkit engine to convert HTML pages to PDF.
MIT License
1.09k stars 417 forks source link

How to deal with pagination when lines don't have a standard height #46

Closed lnaie closed 6 years ago

lnaie commented 6 years ago

I was wondering about that, if there is any know solution/workaround. It could happen when the cell text gets wrapped because it has to be shown entirely. So it will affect the height of the rows (making it variable), therefore the number of rows that can fit in a page.

Is there a way to detect dynamically the height of the rows?

Thanks

rdvojmoc commented 6 years ago

Take a look on wkhtmltopdf github for a clue. DinkToPdf is only wrapper for wkhtmltopdf library,

ghost commented 5 years ago

@lnaie I have the same problem. Did you find the solution?