internal Footer(FooterPart part, DocX document, HeaderFooterValues type) { footer = part.Footer; footerPart = part; this.document = document; this.type = type; }
internal static void GenerateFooterPartContent(FooterPart part) { var footer = new DocumentFormat.OpenXml.Wordprocessing.Footer() { MCAttributes = MarkupCompatibilityAttributes }; Schemas.AddNamespaceDeclarations(footer); part.Footer = footer; }
public static FooterBase CreateFooter( this Word.Footer wordFooter, PageMargin pageMargin, IImageAccessor imageAccessor, IStyleFactory styleFactory) { if (wordFooter == null) { return(new NoFooter(pageMargin)); } var childElements = wordFooter.RenderableChildren().CreatePageElements(imageAccessor, styleFactory); return(new Footer(childElements, pageMargin)); }