@Role
public interface XDOMOfficeDocumentBuilder
XDOMOfficeDocument objects from binary office files or
XHTMLOfficeDocument objects.| Modifier and Type | Method and Description |
|---|---|
XDOMOfficeDocument |
build(InputStream officeFileStream,
String officeFileName,
org.xwiki.model.reference.DocumentReference reference,
boolean filterStyles)
Builds a
XDOMOfficeDocument corresponding to the given office document. |
XDOMOfficeDocument |
build(XHTMLOfficeDocument xhtmlOfficeDocument)
Builds a
XDOMOfficeDocument from the given XHTMLOfficeDocument. |
XDOMOfficeDocument build(InputStream officeFileStream, String officeFileName, org.xwiki.model.reference.DocumentReference reference, boolean filterStyles) throws OfficeImporterException
XDOMOfficeDocument corresponding to the given office document.officeFileStream - InputStream corresponding to the office documentofficeFileName - name of the office document (used to determine input document format)reference - reference document w.r.t which HTML cleaning is performed. If the office file contains images or
other binary artifacts, HTML cleaning will be performed assuming that those artifacts are present as
attachments to the reference documentfilterStyles - whether to filter CSS styles present in the HTML content produced by the office serverXDOMOfficeDocument corresponding to the office documentOfficeImporterException - if an error occurs while performing the import operationXDOMOfficeDocument build(XHTMLOfficeDocument xhtmlOfficeDocument) throws OfficeImporterException
XDOMOfficeDocument from the given XHTMLOfficeDocument.xhtmlOfficeDocument - XHTMLOfficeDocument already built using XHTMLOfficeDocumentBuilderXDOMOfficeDocument corresponding to the given XHTMLOfficeDocumentOfficeImporterException - if an error occurs while parsing XHTML into XDOMCopyright © 2004–2021 XWiki. All rights reserved.