@Role
public interface XHTMLOfficeDocumentBuilder
XHTMLOfficeDocument
objects from binary office files.Modifier and Type | Method and Description |
---|---|
XHTMLOfficeDocument |
build(InputStream officeFileStream,
String officeFileName,
org.xwiki.model.reference.DocumentReference reference,
boolean filterStyles)
Builds a
XHTMLOfficeDocument corresponding to the specified office document. |
XHTMLOfficeDocument build(InputStream officeFileStream, String officeFileName, org.xwiki.model.reference.DocumentReference reference, boolean filterStyles) throws OfficeImporterException
XHTMLOfficeDocument
corresponding to the specified 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 office serverXHTMLOfficeDocument
corresponding to the office documentOfficeImporterException
- if an error occurs while performing the import operationCopyright © 2004–2021 XWiki. All rights reserved.