ignoreHeaderFooter property
ImportFormatOptions.ignoreHeaderFooter property
Gets or sets a boolean value that specifies that source formatting of headers/footers content ignored
if ImportFormatMode.KeepSourceFormatting mode is used.
The default value is true
.
get ignoreHeaderFooter(): boolean
Examples
Shows how to specifies ignoring or not source formatting of headers/footers content.
let dstDoc = new aw.Document(base.myDir + "Document.docx");
let srcDoc = new aw.Document(base.myDir + "Header and footer types.docx");
// If 'IgnoreHeaderFooter' is false then the original formatting for header/footer content
// from "Header and footer types.docx" will be used.
// If 'IgnoreHeaderFooter' is true then the formatting for header/footer content
// from "Document.docx" will be used.
let importFormatOptions = new aw.ImportFormatOptions();
importFormatOptions.ignoreHeaderFooter = false;
dstDoc.appendDocument(srcDoc, aw.ImportFormatMode.KeepSourceFormatting, importFormatOptions);
dstDoc.save(base.artifactsDir + "DocumentBuilder.DoNotIgnoreHeaderFooter.docx");
See Also
- module Aspose.Words
- class ImportFormatOptions