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;
}
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;
}
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;
}
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;
}
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);
}
Aggregations