public class CustomXWPFDocument
extends org.apache.poi.xwpf.usermodel.XWPFDocument
Constructor and Description |
---|
CustomXWPFDocument() |
CustomXWPFDocument(java.io.InputStream in) |
Modifier and Type | Method and Description |
---|---|
void |
addPicture(java.awt.image.BufferedImage image,
int width,
int height) |
void |
addPicture(java.io.InputStream inputStream,
int type,
int width,
int height) |
void |
addPicture(java.lang.String filename,
int type,
int width,
int height) |
addEndnote, addFootnote, addPictureData, addPictureData, createFootnotes, createNumbering, createParagraph, createStyles, createTable, createTable, createTOC, enforceCommentsProtection, enforceCommentsProtection, enforceFillingFormsProtection, enforceFillingFormsProtection, enforceReadonlyProtection, enforceReadonlyProtection, enforceTrackedChangesProtection, enforceTrackedChangesProtection, enforceUpdateFields, getAllEmbedds, getAllPackagePictures, getAllPictures, getBodyElements, getBodyElementsIterator, getCommentByID, getComments, getDocument, getEndnoteByID, getFooterArray, getFooterList, getFootnoteByID, getFootnotes, getHeaderArray, getHeaderFooterPolicy, getHeaderList, getHyperlinkByID, getHyperlinks, getLastParagraph, getNextPicNameNumber, getNumbering, getParagraph, getParagraphArray, getParagraphPos, getParagraphs, getParagraphsIterator, getPart, getPartById, getPartType, getPictureDataByID, getPosOfParagraph, getPosOfTable, getStyle, getStyles, getTable, getTableArray, getTableCell, getTablePos, getTables, getTablesIterator, getTblStyle, getXWPFDocument, insertNewParagraph, insertNewTbl, insertTable, isEnforcedCommentsProtection, isEnforcedFillingFormsProtection, isEnforcedReadonlyProtection, isEnforcedTrackedChangesProtection, isEnforcedUpdateFields, isTrackRevisions, removeBodyElement, removeProtectionEnforcement, setParagraph, setTable, setTrackRevisions, validateProtectionPassword
getPackage, getProperties, hasOOXMLHeader, openPackage, write
public CustomXWPFDocument()
public CustomXWPFDocument(java.io.InputStream in) throws java.io.IOException
java.io.IOException
public void addPicture(java.awt.image.BufferedImage image, int width, int height) throws org.apache.poi.openxml4j.exceptions.InvalidFormatException, java.io.FileNotFoundException
org.apache.poi.openxml4j.exceptions.InvalidFormatException
java.io.FileNotFoundException
public void addPicture(java.lang.String filename, int type, int width, int height) throws org.apache.poi.openxml4j.exceptions.InvalidFormatException, java.io.FileNotFoundException
org.apache.poi.openxml4j.exceptions.InvalidFormatException
java.io.FileNotFoundException
public void addPicture(java.io.InputStream inputStream, int type, int width, int height) throws org.apache.poi.openxml4j.exceptions.InvalidFormatException, java.io.FileNotFoundException
org.apache.poi.openxml4j.exceptions.InvalidFormatException
java.io.FileNotFoundException