You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's an error in documentation related to save PDF directly to a File. In chapter 3 'Rendering' on the second example box, one parameter is missing resulting in save a blank PDF. Here is the correct version. Otherwise it render a blank PDF...
// Get the bytes
def bytes = gifRenderingService.render(template: '/images/coupon', model: [serial: 12345])
// Render to a file
new File("coupon.jpg").withOutputStream { outputStream ->
jpegRenderingService.render([template: '/images/coupon', model: [serial: 12345]],outputStream)
}
I use this plugin for almost 3 years now for all embedded reports I need to do. It's really awesome.
Thanks in advance!
The text was updated successfully, but these errors were encountered:
Hi guys,
There's an error in documentation related to save PDF directly to a File. In chapter 3 'Rendering' on the second example box, one parameter is missing resulting in save a blank PDF. Here is the correct version. Otherwise it render a blank PDF...
// Get the bytes
def bytes = gifRenderingService.render(template: '/images/coupon', model: [serial: 12345])
// Render to a file
new File("coupon.jpg").withOutputStream { outputStream ->
jpegRenderingService.render([template: '/images/coupon', model: [serial: 12345]],outputStream)
}
I use this plugin for almost 3 years now for all embedded reports I need to do. It's really awesome.
Thanks in advance!
The text was updated successfully, but these errors were encountered: