Search in sources :

Example 6 with FooterPart

use of org.docx4j.openpackaging.parts.WordprocessingML.FooterPart in project docx4j-template by vindell.

the class Docx4J_例子2 method createTextFooterPart.

// 文字页脚
public Relationship createTextFooterPart(WordprocessingMLPackage wordprocessingMLPackage, MainDocumentPart t, ObjectFactory factory, String content, boolean isUnderLine, String underLineSz, JcEnumeration jcEnumeration) throws Exception {
    FooterPart footerPart = new FooterPart();
    Relationship rel = t.addTargetPart(footerPart);
    footerPart.setJaxbElement(getTextFtr(wordprocessingMLPackage, factory, footerPart, content, isUnderLine, underLineSz, jcEnumeration));
    return rel;
}
Also used : FooterPart(org.docx4j.openpackaging.parts.WordprocessingML.FooterPart) Relationship(org.docx4j.relationships.Relationship)

Example 7 with FooterPart

use of org.docx4j.openpackaging.parts.WordprocessingML.FooterPart in project docx4j-template by vindell.

the class Docx4J_例子2 method createFooterPart.

// 图片页脚
public Relationship createFooterPart(WordprocessingMLPackage wordprocessingMLPackage, MainDocumentPart t, ObjectFactory factory, boolean isUnderLine, String underLineSize) throws Exception {
    FooterPart footerPart = new FooterPart();
    Relationship rel = t.addTargetPart(footerPart);
    footerPart.setJaxbElement(getFtr(wordprocessingMLPackage, factory, footerPart, isUnderLine, underLineSize));
    return rel;
}
Also used : FooterPart(org.docx4j.openpackaging.parts.WordprocessingML.FooterPart) Relationship(org.docx4j.relationships.Relationship)

Example 8 with FooterPart

use of org.docx4j.openpackaging.parts.WordprocessingML.FooterPart in project docx4j-template by vindell.

the class Docx4J_简单例子 method createFooterPart.

// 图片页脚
public Relationship createFooterPart(WordprocessingMLPackage wordprocessingMLPackage, MainDocumentPart t, ObjectFactory factory) throws Exception {
    FooterPart footerPart = new FooterPart();
    Relationship rel = t.addTargetPart(footerPart);
    footerPart.setJaxbElement(getFtr(wordprocessingMLPackage, factory, footerPart));
    return rel;
}
Also used : FooterPart(org.docx4j.openpackaging.parts.WordprocessingML.FooterPart) Relationship(org.docx4j.relationships.Relationship)

Example 9 with FooterPart

use of org.docx4j.openpackaging.parts.WordprocessingML.FooterPart in project docx4j-template by vindell.

the class Docx4J_简单例子2 method createFooterPart.

// 图片页脚
public Relationship createFooterPart(WordprocessingMLPackage wordprocessingMLPackage, MainDocumentPart t, ObjectFactory factory) throws Exception {
    FooterPart footerPart = new FooterPart();
    Relationship rel = t.addTargetPart(footerPart);
    footerPart.setJaxbElement(getFtr(wordprocessingMLPackage, factory, footerPart));
    return rel;
}
Also used : FooterPart(org.docx4j.openpackaging.parts.WordprocessingML.FooterPart) Relationship(org.docx4j.relationships.Relationship)

Example 10 with FooterPart

use of org.docx4j.openpackaging.parts.WordprocessingML.FooterPart in project docx4j-template by vindell.

the class Docx4J_简单例子2 method createFooterPageNumPart.

public Relationship createFooterPageNumPart(WordprocessingMLPackage wordprocessingMLPackage, MainDocumentPart t, ObjectFactory factory) throws Exception {
    FooterPart footerPart = new FooterPart();
    footerPart.setPackage(wordprocessingMLPackage);
    footerPart.setJaxbElement(createFooterWithPageNr(factory));
    return t.addTargetPart(footerPart);
}
Also used : FooterPart(org.docx4j.openpackaging.parts.WordprocessingML.FooterPart)

Aggregations

FooterPart (org.docx4j.openpackaging.parts.WordprocessingML.FooterPart)13 Relationship (org.docx4j.relationships.Relationship)7 File (java.io.File)1 WordprocessingMLPackage (org.docx4j.openpackaging.packages.WordprocessingMLPackage)1 HeaderPart (org.docx4j.openpackaging.parts.WordprocessingML.HeaderPart)1