-
Notifications
You must be signed in to change notification settings - Fork 47
Description
I am working on a grails 3 (version 3.2.3) project where it needs to convert a gsp into a pdf. I tried to use the rendering plugin provided by grails. I imported the plugin using:
compile 'org.grails.plugins:rendering:2.0.3'
in my build.gradle file
and in my controller i used:
ByteArrayOutputStream bytes = pdfRenderingService.render(template: "/templates/pdf_PI", model: [proformaInvoice: proformaInvoice])
to render the pdf. The service is injected using def pdfRenderingService
however i m getting this error
grails-app/controllers/chsam/re/ProformaInvoiceController.groovy: -1: The return type of java.lang.Object getPdfRenderingService() in chsam.re.ProformaInvoiceController is incompatible with grails.plugins.rendering.pdf.PdfRenderingService in grails.plugins.rendering.RenderingTrait. At [-1:-1] @ line -1, column -1.