Interface PdfHandler

  • All Known Implementing Classes:
    PdfHandlerImpl

    public interface PdfHandler
    Helper for generating PDF documents
    • Method Detail

      • newTemplate

        PdfTemplate newTemplate​(String html,
                                String css)
        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.