Represents a document header.
Headers appear at the top of each page in a section and can contain paragraphs, tables, images, and other content.
const header = new Header({ children: [ new Paragraph({ children: [new TextRun("Company Name")] }), ],}); Copy
const header = new Header({ children: [ new Paragraph({ children: [new TextRun("Company Name")] }), ],});
Readonly
Represents a document header.
Headers appear at the top of each page in a section and can contain paragraphs, tables, images, and other content.
Public Api
Example