|Modifier and Type||Method and Description|
XDOMOfficeDocument build(InputStream officeFileStream, String officeFileName, org.xwiki.model.reference.DocumentReference reference, boolean filterStyles) throws OfficeImporterException
XDOMOfficeDocumentcorresponding to the given office document.
InputStreamcorresponding to the office document
officeFileName- 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 document
filterStyles- whether to filter CSS styles present in the HTML content produced by the office server
XDOMOfficeDocumentcorresponding to the office document
OfficeImporterException- if an error occurs while performing the import operation
XDOMOfficeDocument build(XHTMLOfficeDocument xhtmlOfficeDocument) throws OfficeImporterException
Copyright © 2004–2021 XWiki. All rights reserved.