@Service public class PrintsRendererService extends Object implements IPrintsRendererService
| Modifier and Type | Field and Description |
|---|---|
protected freemarker.template.Configuration |
freeMarkerConfiguration |
| Constructor and Description |
|---|
PrintsRendererService() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
createPDF(byte[] documentSource,
String url) |
byte[] |
generatePrint(String templateName,
Object dataModel) |
byte[] |
renderHtml(String templateName,
Object dataModel) |
void |
setFreeMarkerConfiguration(freemarker.template.Configuration freeMarkerConfiguration) |
@Autowired protected freemarker.template.Configuration freeMarkerConfiguration
public byte[] renderHtml(String templateName, Object dataModel)
renderHtml in interface IPrintsRendererServicepublic byte[] createPDF(byte[] documentSource,
String url)
createPDF in interface IPrintsRendererServicepublic byte[] generatePrint(String templateName, Object dataModel)
generatePrint in interface IPrintsRendererServicepublic void setFreeMarkerConfiguration(freemarker.template.Configuration freeMarkerConfiguration)
Copyright © 2015 Matsuo IT. All rights reserved.