I have created a Jasper Report to display text retrieved from DB. The text is in the HTML format. I have a requirement to style and align the text when displaying in PDF. This is a sample HTML text from DB
<html>
<p><b>This is Bold text</b></p>
<p> This is a paragraph whith indent</p>
<p>This is a paragra with no indent</p>
<p><center>This text should be centered</center></p>
<p><font size="4">This text should be of font size 4</font></p>
</html>
The bold and paragraphs tags works fine. But the font doesn't work for size 4. There is a center tag for a line which has to be aligned center. Looking at the Jasper documentation center tag is not listed in supported tags. http://jasperreports.sourceforge.net/sample.reference/styledtext/index.html
I tried center alignment with styled and rtf markup, it didn't work. Is there any other way I can achieve the text alignment as center for some lines in text field?
Also let me know if I am using the font tag in wrong way.