Exemplo n.º 1
0
        internal Footer(FooterPart part, DocX document, HeaderFooterValues type)
        {
            footer     = part.Footer;
            footerPart = part;

            this.document = document;
            this.type     = type;
        }
Exemplo n.º 2
0
        internal static void GenerateFooterPartContent(FooterPart part)
        {
            var footer = new DocumentFormat.OpenXml.Wordprocessing.Footer()
            {
                MCAttributes = MarkupCompatibilityAttributes
            };

            Schemas.AddNamespaceDeclarations(footer);

            part.Footer = footer;
        }
Exemplo n.º 3
0
        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));
        }