Open chrismalan opened 7 years ago
I have gone directly to the IText and Flying Saucer libraries and everything works. Rendering was removed as a dependency. It was simpler than I had thought.
did you have any solution to this problem?
I had to add the following line to build.gradle
:
runtime "org.springframework:spring-test:4.2.1.RELEASE"
Grails version: 3.3.1 Rendering plugin: 2.0.3 To duplicate, create a Grails project with one class called Person with three String attributes: name, surname, emailAddress. At the bottom of the show view I have this:
<g:link class="edit" action="pdfThis" resource="${this.person}">Pdf This</g:link>
The method in the controller is this:I notice that
def pdfRenderingService
does not work anymore. One has to have:grails.plugins.rendering.pdf.PdfRenderingService pdfRenderingService
in the controller.This is the template, called _person.gsp, in views/templates/pdf/
These are the exceptions:
I have no idea what is null and why it is null. Everything I am responsible for is there and is not null.