FPDF/PHP – Adding bottom border to table before next page

I have a form generated by FPDF which creates multiple rows based on the client’s payment records. I want it to create a bottom border when it has finished creating the last row in the current page. (See below, just above the page number) Is there an FPDF function for this?

enter image description here