PdfRenderer
To render a page as pdf - format.pdf { render pdf: “contents” }
or render pdf: “contents”, template: “home/index”
Here first parameter “contents” is the file name of the pdf. and other one “home/index”, is the path to the template file.
For more understanding check the dummy application inside ‘test’.