Examples of Ftr


Examples of org.docx4j.wml.Ftr

    if (rp!=null) {
      for ( Relationship r : rp.getRelationships().getRelationship() ) {
        Part part = rp.getPart(r);
        if ( part instanceof FooterPart ) {
         
          Ftr ftr = ((FooterPart)part).getJaxbElement();
          finder.walkJAXBElements(ftr);
         
        } else if (part instanceof HeaderPart) {
         
          Hdr hdr = ((HeaderPart)part).getJaxbElement();
View Full Code Here

Examples of org.docx4j.wml.Ftr

    if (rp!=null) {
      for ( Relationship r : rp.getRelationships().getRelationship() ) {
        Part part = rp.getPart(r);
        if ( part instanceof FooterPart ) {
         
          Ftr ftr = ((FooterPart)part).getJaxbElement();
          finder.walkJAXBElements(ftr);
         
        } else if (part instanceof HeaderPart) {
         
          Hdr hdr = ((HeaderPart)part).getJaxbElement();
View Full Code Here

Examples of org.docx4j.wml.Ftr

    return XmlUtils.marshaltoW3CDomDocument(hdr);
  }

  public static Node getEvenFooter(AbstractWmlConversionContext context) {
    ConversionSectionWrapper currentSection = context.getSections().getCurrentSection();
    Ftr ftr = (Ftr)currentSection.getHeaderFooterPolicy().getEvenFooter().getJaxbElement();
    return XmlUtils.marshaltoW3CDomDocument(ftr);

  }
View Full Code Here

Examples of org.docx4j.wml.Ftr

  }

  public static Node getDefaultFooter(AbstractWmlConversionContext context) {
    ConversionSectionWrapper currentSection = context.getSections().getCurrentSection();
    Ftr ftr = (Ftr)currentSection.getHeaderFooterPolicy().getDefaultFooter().getJaxbElement();
    return XmlUtils.marshaltoW3CDomDocument(ftr);

  }
View Full Code Here

Examples of org.docx4j.wml.Ftr

                head.writeSelectedRows(0, -1, document.leftMargin(), page.getHeight() - document.topMargin() + head.getTotalHeight(),
                    writer.getDirectContent());
              }
             
              if (headerFooterPolicy.getFooter(writer.getPageNumber())!=null) {
                Ftr ftr = headerFooterPolicy.getFooter(writer.getPageNumber()).getJaxbElement();             
                PdfPTable foot = new PdfPTable(1);
                traverseBlockLevelContent( ftr.getEGBlockLevelElts(), foot);
                foot.setTotalWidth(page.getWidth() - document.leftMargin() - document.rightMargin());
                foot.writeSelectedRows(0, -1, document.leftMargin(), document.bottomMargin(),
                    writer.getDirectContent());
              }
          }
View Full Code Here

Examples of org.docx4j.wml.Ftr

    return XmlUtils.marshaltoW3CDomDocument(hdr);
  }

  public static Node getFirstFooter(AbstractWmlConversionContext context) {
    ConversionSectionWrapper currentSection = context.getSections().getCurrentSection();
    Ftr ftr = (Ftr)currentSection.getHeaderFooterPolicy().getFirstFooter().getJaxbElement();
    return XmlUtils.marshaltoW3CDomDocument(ftr);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.