org.jeecgframework.poi.word.entity
类 MyXWPFDocument

java.lang.Object
  继承者 org.apache.poi.POIXMLDocumentPart
      继承者 org.apache.poi.POIXMLDocument
          继承者 org.apache.poi.xwpf.usermodel.XWPFDocument
              继承者 org.jeecgframework.poi.word.entity.MyXWPFDocument
所有已实现的接口:
org.apache.poi.xwpf.usermodel.Document, org.apache.poi.xwpf.usermodel.IBody

public class MyXWPFDocument
extends org.apache.poi.xwpf.usermodel.XWPFDocument

扩充document,修复图片插入失败问题问题

版本:
1.0
作者:
JueYue

字段摘要
 
从类 org.apache.poi.xwpf.usermodel.XWPFDocument 继承的字段
bodyElements, comments, endnotes, footers, footnotes, headers, hyperlinks, numbering, packagePictures, paragraphs, pictures, styles, tables
 
从类 org.apache.poi.POIXMLDocument 继承的字段
DOCUMENT_CREATOR, OLE_OBJECT_REL_TYPE, PACK_OBJECT_REL_TYPE
 
从类 org.apache.poi.POIXMLDocumentPart 继承的字段
DEFAULT_XML_OPTIONS
 
从接口 org.apache.poi.xwpf.usermodel.Document 继承的字段
PICTURE_TYPE_BMP, PICTURE_TYPE_DIB, PICTURE_TYPE_EMF, PICTURE_TYPE_EPS, PICTURE_TYPE_GIF, PICTURE_TYPE_JPEG, PICTURE_TYPE_PICT, PICTURE_TYPE_PNG, PICTURE_TYPE_TIFF, PICTURE_TYPE_WMF, PICTURE_TYPE_WPG
 
构造方法摘要
MyXWPFDocument()
           
MyXWPFDocument(InputStream in)
           
MyXWPFDocument(org.apache.poi.openxml4j.opc.OPCPackage opcPackage)
           
 
方法摘要
 void createPicture(String blipId, int id, int width, int height)
           
 void createPicture(org.apache.poi.xwpf.usermodel.XWPFRun run, String blipId, int id, int width, int height)
           
 
从类 org.apache.poi.xwpf.usermodel.XWPFDocument 继承的方法
addEndnote, addFootnote, addPictureData, addPictureData, commit, createFootnotes, createNumbering, createParagraph, createStyles, createTable, createTable, createTOC, enforceCommentsProtection, enforceFillingFormsProtection, enforceReadonlyProtection, 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, newPackage, onDocumentCreate, onDocumentRead, removeBodyElement, removeProtectionEnforcement, setParagraph, setTable
 
从类 org.apache.poi.POIXMLDocument 继承的方法
getCorePart, getPackage, getProperties, getRelatedByType, hasOOXMLHeader, load, openPackage, write
 
从类 org.apache.poi.POIXMLDocumentPart 继承的方法
addRelation, createRelationship, createRelationship, createRelationship, getPackagePart, getPackageRelationship, getParent, getRelationById, getRelationId, getRelations, getTargetPart, onDocumentRemove, onSave, read, rebase, removeRelation, removeRelation, toString
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

MyXWPFDocument

public MyXWPFDocument()

MyXWPFDocument

public MyXWPFDocument(InputStream in)
               throws Exception
抛出:
Exception

MyXWPFDocument

public MyXWPFDocument(org.apache.poi.openxml4j.opc.OPCPackage opcPackage)
               throws Exception
抛出:
Exception
方法详细信息

createPicture

public void createPicture(String blipId,
                          int id,
                          int width,
                          int height)

createPicture

public void createPicture(org.apache.poi.xwpf.usermodel.XWPFRun run,
                          String blipId,
                          int id,
                          int width,
                          int height)


Copyright © 2015. All Rights Reserved.