Class HtmlFormatter

java.lang.Object
io.jmix.reports.yarg.formatters.impl.AbstractFormatter
io.jmix.reports.yarg.formatters.impl.HtmlFormatter
All Implemented Interfaces:
ReportFormatter
Direct Known Subclasses:
JmixHtmlFormatter

public class HtmlFormatter extends AbstractFormatter
Document formatter for '.html' and '.ftl' file types
  • Field Details

    • beansWrapper

      protected freemarker.ext.beans.BeansWrapper beansWrapper
    • objectWrapper

      protected freemarker.template.ObjectWrapper objectWrapper
    • fontsDirectory

      protected String fontsDirectory
    • pdfConverterFactory

      protected HtmlToPdfConverterFactory pdfConverterFactory
  • Constructor Details

  • Method Details

    • renderDocument

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

      public void setFontsDirectory(String fontsDirectory)
    • setPdfConverterFactory

      public void setPdfConverterFactory(HtmlToPdfConverterFactory pdfConverterFactory)
    • renderPdfDocument

      protected void renderPdfDocument(String htmlContent, OutputStream outputStream)
    • loadFonts

      protected void loadFonts(HtmlToPdfConverter converter)
    • loadFontsFromDirectory

      protected void loadFontsFromDirectory(HtmlToPdfConverter converter, File fontsDir)
    • writeHtmlDocument

      protected void writeHtmlDocument(BandData rootBand, OutputStream outputStream)
    • getTemplateModel

      protected Map getTemplateModel(BandData rootBand)
    • getBandModel

      protected Map getBandModel(BandData band)
    • getFreemarkerTemplate

      protected freemarker.template.Template getFreemarkerTemplate()
    • getGroovyTemplate

      protected groovy.text.Template getGroovyTemplate()