## HeaderFooter(doc, headerFooterType) {#documentbase_headerfootertype} Creates a new header or footer of the specified type. ```js HeaderFooter(doc: Aspose.Words.DocumentBase, headerFooterType: As....../) to a [Section](../../section/) use [CompositeNode...node), or [Section.headersFooters](../../section/headersFooters/)...