public class DocxUtils extends Object
| 构造器和说明 |
|---|
DocxUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static org.docx4j.dml.wordprocessingDrawing.Anchor |
createAnchorByInline(org.docx4j.dml.wordprocessingDrawing.Inline imageInline,
float x,
float y)
copy properties by inline
|
static org.docx4j.vml.CTTextPath |
createCenterTextPath(String watermark,
String fontName)
create center textPath object
text center align
|
static <T> JAXBElement<T> |
createJAXBElement(T value)
create JAXBElement
|
static org.docx4j.vml.CTShape |
createNormalShape(Color color)
create Shape object
|
static org.docx4j.vml.CTTextPath |
createNormalTextPath(String watermark,
String fontName)
create normal textPath object
text left align
|
static org.docx4j.wml.R |
createR(org.docx4j.vml.CTTextPath textPath,
org.docx4j.vml.CTShape ctShape,
float alpha)
Creates a docx R object
|
public static org.docx4j.vml.CTTextPath createNormalTextPath(String watermark, String fontName)
watermark - watermark textfontName - font namepublic static org.docx4j.vml.CTTextPath createCenterTextPath(String watermark, String fontName)
watermark - watermark textfontName - font namepublic static org.docx4j.vml.CTShape createNormalShape(Color color)
color - shape colorpublic static org.docx4j.wml.R createR(org.docx4j.vml.CTTextPath textPath,
org.docx4j.vml.CTShape ctShape,
float alpha)
textPath - textPathctShape - ctShapealpha - The transparency value for the watermark.public static org.docx4j.dml.wordprocessingDrawing.Anchor createAnchorByInline(org.docx4j.dml.wordprocessingDrawing.Inline imageInline,
float x,
float y)
imageInline - inline imagex - x, unit is pty - y, unit is ptpublic static <T> JAXBElement<T> createJAXBElement(T value)
T - value - need package JAXBElement objectCopyright © 2024. All rights reserved.