Jump to content

Styled text (HTML) - what is officially supported?


jambalaya

Recommended Posts

Hi.

I have the requirement to be able to render HTML attibuted text, which works fine. The question I have is what subset of HTML is officially supported? I bought the definitive guide (version 3.0) and it doesn't say. The closest it gets is that it lists the schema for the proprietary XML that we can use. However, I am not sure about a few things:

1. what is the style attribute? is it the HTML or JRXML  version?

2. the list of supported tags mentions <li>, but I don't see a mention of <ul> or <ol>, how do I use it then? (I enclosed these with the <ol> tag in my example, and it worked, but I am not sure if this is officially supported and if this is the correct way of using that.)

Also, I did some tests with RTF, and it looks pretty much the same, with the difference that the list has some visual artifacts. Please see the attached file, this is a fragment from the generated PDF file - you can see small rectangles enclosing the first letter after the item sequence number, as if used for some measurments or sth, I don't know.

As the last question, could you tell me what component is responsible for rendering the styled text? Does Jasper discover that a text field is styled, and break it down into many smaller fields, or does it delegate the work to on underlying component (like iText for rendering it to PDF)?

Best regards,

Jambalaya

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...