Class DocxFormatter

java.lang.Object
io.jmix.reports.yarg.formatters.impl.AbstractFormatter
io.jmix.reports.yarg.formatters.impl.DocxFormatter
All Implemented Interfaces:
ReportFormatter

public class DocxFormatter extends AbstractFormatter
* Document formatter for '.docx' file types
  • Field Details

    • log

      protected static final org.slf4j.Logger log
    • wordprocessingMLPackage

      protected org.docx4j.openpackaging.packages.WordprocessingMLPackage wordprocessingMLPackage
    • documentWrapper

      protected DocumentWrapper documentWrapper
    • documentConverter

      protected DocumentConverter documentConverter
    • htmlImportProcessor

      protected HtmlImportProcessor htmlImportProcessor
  • Constructor Details

  • Method Details

    • setDocumentConverter

      public void setDocumentConverter(DocumentConverter documentConverter)
    • setHtmlImportProcessor

      public void setHtmlImportProcessor(HtmlImportProcessor htmlImportProcessor)
    • renderDocument

      public void renderDocument()
      Description copied from interface: ReportFormatter
      Creates document and serializes it to predefined stream (or something like this)
    • updateTableOfContents

      protected void updateTableOfContents()
    • handleUrls

      protected void handleUrls()
    • loadDocument

      protected void loadDocument()
    • saveAndClose

      protected void saveAndClose()
    • replaceAllAliasesInDocument

      protected void replaceAllAliasesInDocument()
    • fillTables

      protected void fillTables()
    • tryToApplyInliners

      protected boolean tryToApplyInliners(String fullParameterName, Object paramValue, org.docx4j.wml.Text text)
    • writeToOutputStream

      protected void writeToOutputStream(org.docx4j.openpackaging.packages.WordprocessingMLPackage mlPackage, OutputStream outputStream) throws org.docx4j.openpackaging.exceptions.Docx4JException
      Throws:
      org.docx4j.openpackaging.exceptions.Docx4JException
    • convertAltChunks

      public void convertAltChunks() throws org.docx4j.openpackaging.exceptions.Docx4JException
      Throws:
      org.docx4j.openpackaging.exceptions.Docx4JException