Class WkHtmlToPdfHandler
java.lang.Object
ch.tocco.nice2.reporting.impl.freemarker.handlers.WkHtmlToPdfHandler
- All Implemented Interfaces:
FileFormatHandler
-
Constructor Summary
ConstructorsConstructorDescriptionWkHtmlToPdfHandler(PdfConverterService pdfConverterService, ConverterEngineFactory converterEngineFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleFileFormat(OutputStream target, TemplateEngine templateEngine, Nice2Template nice2Template, com.google.common.io.FileBackedOutputStream fileBackedOutputStream, String businessUnitId, String css, ReportDescription reportDescription, String encoding) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ch.tocco.nice2.reporting.impl.freemarker.handlers.FileFormatHandler
handleFileFormat
-
Constructor Details
-
WkHtmlToPdfHandler
public WkHtmlToPdfHandler(PdfConverterService pdfConverterService, ConverterEngineFactory converterEngineFactory)
-
-
Method Details
-
getFileExtension
- Specified by:
getFileExtensionin interfaceFileFormatHandler
-
handleFileFormat
public void handleFileFormat(OutputStream target, TemplateEngine templateEngine, Nice2Template nice2Template, com.google.common.io.FileBackedOutputStream fileBackedOutputStream, String businessUnitId, String css, ReportDescription reportDescription, String encoding) throws IOException, ConversionException - Specified by:
handleFileFormatin interfaceFileFormatHandler- Throws:
IOExceptionConversionException
-