ignore_header_footer property
ImportFormatOptions.ignore_header_footer property
Gets or sets a boolean value that specifies that source formatting of headers/footers content ignored
if ImportFormatMode.KEEP_SOURCE_FORMATTING mode is used.
The default value is True
.
@property
def ignore_header_footer(self) -> bool:
...
@ignore_header_footer.setter
def ignore_header_footer(self, value: bool):
...
Examples
Shows how to specifies ignoring or not source formatting of headers/footers content.
dst_doc = aw.Document(MY_DIR + "Document.docx")
src_doc = aw.Document(MY_DIR + "Header and footer types.docx")
import_format_options = aw.ImportFormatOptions()
import_format_options.ignore_header_footer = False
dst_doc.append_document(src_doc, aw.ImportFormatMode.KEEP_SOURCE_FORMATTING, import_format_options)
dst_doc.save(ARTIFACTS_DIR + "DocumentBuilder.do_not_ignore_header_footer.docx")
See Also
- module aspose.words
- class ImportFormatOptions