Footer issue In PDF

Hello, we have configured a header and a footer in the “Letterhead” doctype. However, we are encountering an issue where the letterhead is not appearing in the PDF. If we uncheck the option “Repeat Header and Footer in PDF,” the header appears in the PDF, but the footer is not displaying.
Could you help us in it?