I am using wicked_pdf to generate pdfs. The problem i am facing is that, sometimes it displays the last row in the page across two pages. Is there a way to tell wicked_pdf to render the row in next page if it can't fit the entire row in that page or set a limit on the number of rows in a page?
Below image is an example of my problem.
My options are
render :pdf => file_name,
:layout => "pdf.html",
:disposition => "attachment"