org.apache.poi.xdgf.usermodel
Class XmlVisioDocument
java.lang.Object
org.apache.poi.POIXMLDocumentPart
org.apache.poi.POIXMLDocument
org.apache.poi.xdgf.usermodel.XmlVisioDocument
- All Implemented Interfaces:
- java.io.Closeable
public class XmlVisioDocument
- extends POIXMLDocument
This is your high-level starting point for working with Visio XML
documents (.vsdx).
Currently, only read support has been implemented, and the API is
not mature and is subject to change.
For more information about the visio XML format (with an XSD 1.0
schema), you can find documentation at
https://msdn.microsoft.com/en-us/library/hh645006(v=office.12).aspx
That document lacks in some areas, but you can find additional
documentation and an updated XSD 1.1 schema at
https://msdn.microsoft.com/en-us/library/office/jj684209(v=office.15).aspx
Each provides different details, but the SharePoint reference
has better documentation and is more useful.
Methods inherited from class org.apache.poi.POIXMLDocumentPart |
_invokeOnDocumentRead, addRelation, commit, createRelationship, createRelationship, createRelationship, getNextPartNumber, getPackagePart, getParent, getRelationById, getRelationId, getRelationParts, getRelations, getTargetPart, onDocumentCreate, onDocumentRemove, onSave, prepareForCommit, read, rebase, removeRelation, removeRelation, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
_pages
protected XDGFPages _pages
_masters
protected XDGFMasters _masters
_document
protected XDGFDocument _document
XmlVisioDocument
public XmlVisioDocument(OPCPackage pkg)
throws java.io.IOException
- Throws:
java.io.IOException
XmlVisioDocument
public XmlVisioDocument(java.io.InputStream is)
throws java.io.IOException
- Throws:
java.io.IOException
onDocumentRead
protected void onDocumentRead()
throws java.io.IOException
- Description copied from class:
POIXMLDocumentPart
- Fired when a package part is read
- Overrides:
onDocumentRead
in class POIXMLDocumentPart
- Throws:
java.io.IOException
- a subclass may throw an IOException when a document is read
getAllEmbedds
public java.util.List<PackagePart> getAllEmbedds()
throws OpenXML4JException
- Not currently implemented
- Specified by:
getAllEmbedds
in class POIXMLDocument
- Returns:
- the document's embedded files
- Throws:
OpenXML4JException
- if the embedded parts can't be determined
getPages
public java.util.Collection<XDGFPage> getPages()
- Returns:
- pages ordered by page number
getStyleById
public XDGFStyleSheet getStyleById(long id)
Copyright 2017 The Apache Software Foundation or
its licensors, as applicable.