public class DocxUtil extends Object
Constructor and Description |
---|
DocxUtil() |
Modifier and Type | Method and Description |
---|---|
static org.docx4j.wml.P |
createHorizontalLine() |
static org.docx4j.wml.P |
createPageBreak() |
static org.docx4j.wml.P |
createText(String text) |
static File |
merge(org.docx4j.openpackaging.packages.WordprocessingMLPackage topPackage,
File bottomFile,
File outputFile)
Merge two docx files.
|
protected static File |
mergeUsingCTAltChunk(org.docx4j.openpackaging.packages.WordprocessingMLPackage topPackage,
File bottomFile,
File outputFile)
Merge two docx files using an approach that is based on CTAltChunk.
|
public static File merge(org.docx4j.openpackaging.packages.WordprocessingMLPackage topPackage, File bottomFile, File outputFile) throws Exception
topPackage
- bottomFile
- outputFile
- Exception
protected static File mergeUsingCTAltChunk(org.docx4j.openpackaging.packages.WordprocessingMLPackage topPackage, File bottomFile, File outputFile) throws Exception
separatorTexts
- topFile
- bottomFile
- outputFile
- Exception
public static org.docx4j.wml.P createPageBreak()
public static org.docx4j.wml.P createHorizontalLine()
public static org.docx4j.wml.P createText(String text)
Copyright © 2018. All rights reserved.