You wouldn’t have been able to view the header and the footer content in the PDF as the margin sizes would have been less. You can edit the template and increase the margin sizes such that the header and the footer are included in the PDF.
To increase the margin sizes:
Now, when you generate a PDF, you will be able to view the header and the footer in the PDF.
and GST filing.