Printing sales invoice custom format

custom format for me Bottom Border line printing for last page only but i need for every single page bottom border line
Screenshot from 2023-03-24 16-53-36
Screenshot from 2023-03-24 16-53-10