diff --git a/README.md b/README.md index 972b44a..0cf0bd7 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,24 @@ Rendering Grails Plugin This plugin adds PDF, GIF, PNG and JPEG rendering facilities to Grails applications via the [XHTML Renderer](https://github.com/flyingsaucerproject/flyingsaucer) library. +Install +------- + +To install just add to the dependency block in the `build.gradle` + +For Grails 7.x +```groovy +implementation 'io.github.gpc:rendering:7.0.0-RC1' +``` + +For Grails 3.x - 6.x +```groovy +implementation 'org.grails.plugins:rendering:2.0.3' +``` + +Usage +----- + Rendering is either done directly via one of the `«format»RenderingService` services … ByteArrayOutputStream bytes = pdfRenderingService.render(template: "/pdfs/report", model: [data: data])