Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Grails JR report render as HTML

I am using the JasperReports plugin to generate a complex report. It is working fine with pdf file but requirement is that before download the pdf show exact pdf report preview in html format.

I am just trying to use "inline=true" "_format=html". When It rendering the html there are a big different in PDF and HTML.

The report in html format looks like this:

enter image description here

and in pdf format:

enter image description here

Can you please suggest how I can show exact pdf version in html?

like image 783
user9873999 Avatar asked Apr 01 '26 12:04

user9873999


1 Answers

You can use the following line in your controller:

params.IS_USING_IMAGES_TO_ALIGN = false 
like image 181
rvazquezglez Avatar answered Apr 03 '26 16:04

rvazquezglez



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!