Class PdfHandlerImpl

    • Constructor Detail

      • PdfHandlerImpl

        public PdfHandlerImpl()
    • Method Detail

      • initialize

        @PostConstruct
        public void initialize()
      • newTemplate

        public PdfTemplate newTemplate​(String html,
                                       String css)
        Description copied from interface: PdfHandler
        Creates a new template for PDF generation from the given HTML and optional custom CSS. The HTML is actually interpreted by Thymeleaf. Additional setup of the PdfTemplate can be performed before calling the PdfTemplate.render() method to actually generate the PDF. If the html parameter is actually the name of a report template, reads it instead.
        Specified by:
        newTemplate in interface PdfHandler