[PDF] Extra Page and Dotted Line

After Customizing GST Tax Invoice I am getting an extra page unnecessarily, even through there are no more fields to populated. And there is an additional dotted line at the end of the page as well. I want to get rid of these.

Any suggestions would be appreicated!

Thanks!

To get help on these kind of queries, you need to share your customization!