You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by M Huzaifah <mh...@gmail.com> on 2020/04/11 07:43:30 UTC

Strtus2-jasper plugin rendering

Dear Lucas and Other,

i am generate PDF from struts using jasper plugin. i’ve found something weird. i design my report using Jasper Report Studio (version 6.12.0 the newest one) and then add text with bold and italic style, then preview in jasper report, there no problem, report render with no issue.
when i compile my jasper report and let the struts render the report, style in text are gone. its like the text without any style on it. and i got WARN in my console log :  WARN | Unpatched iText found, cannot use glyph rendering  

even if i downgrade the version of jasper report library and jasper report studio to 6.10.0 version the result still the same.

anyone can give me a solution for render jasper report?

Regard.


this is my report preview in jasper report studio


this is the report rendered in my struts2 application


this is the log cosole



my POM XML:

<!-- https://mvnrepository.com/artifact/com.itextpdf/itextpdf -->
        <dependency>
            <groupId>com.itextpdf</groupId>
            <artifactId>itextpdf</artifactId>
            <version>5.5.13.1</version>
        </dependency>
        <dependency>
            <groupId>com.itextpdf</groupId>
            <artifactId>itext-pdfa</artifactId>
            <version>5.5.13.1</version>
        </dependency>
        <dependency>
            <groupId>com.itextpdf</groupId>
            <artifactId>itext-xtra</artifactId>
            <version>5.5.13.1</version>
        </dependency>

		<!-- https://mvnrepository.com/artifact/com.lowagie/itextGlyphVector -->
		<dependency>
		    <groupId>com.lowagie</groupId>
		    <artifactId>itext</artifactId>
		    <version>2.1.7</version>
		</dependency> 

        <!-- https://mvnrepository.com/artifact/net.sf.jasperreports/jasperreports -->
        <dependency>
            <groupId>net.sf.jasperreports</groupId>
            <artifactId>jasperreports</artifactId>
            <version>6.12.1</version>
        </dependency>




Re: Strtus2-jasper plugin rendering

Posted by Lukasz Lenart <lu...@apache.org>.
sob., 11 kwi 2020 o 11:35 M Huzaifah <mh...@gmail.com> napisał(a):

> Dear Lucas and Other,
>
> i am generate PDF from struts using jasper plugin. i’ve found something
> weird. i design my report using Jasper Report Studio (version 6.12.0 the
> newest one) and then add text with bold and italic style, then preview in
> jasper report, there no problem, report render with no issue.
> when i compile my jasper report and let the struts render the report,
> style in text are gone. its like the text without any style on it. and i
> got WARN in my console log :  WARN | Unpatched iText found, cannot use
> glyph rendering
>
> even if i downgrade the version of jasper report library and jasper report
> studio to 6.10.0 version the result still the same.
>
> anyone can give me a solution for render jasper report?
>

Looks like this has nothing to do with Struts
https://stackoverflow.com/questions/51451447/unpatched-itext-found-cannot-use-glyph-rendering


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/