Jump to content
We've recently updated our Privacy Statement, available here ×

Styled Text + isStrikeThrough + PDF


2004 IR Help

Recommended Posts

By: Michael Schall - schallm

Styled Text + isStrikeThrough + PDF

2005-05-05 10:57

In trying to get strike through text, I tried many things. This is the closest I have gotten. However the strike through seems to be behind the text. If you look at the pdf in demo for styled text, you will see what I'm saying.

 

Is this the only way to get text with the strike through attribute in a pdf?

 

 

 

 

By: Teodor Danciu - teodord

RE: Styled Text + isStrikeThrough + PDF

2005-05-05 11:25

Hi,

 

I'm aware of this problem.

Last time when I rechecked that I found nothing wrong in JR.

It seems an iText problem to me.

 

Are you sure you need styled text?

A text element with the strikethrough property ON does not suffice?

 

Thank you,

Teodor

 

 

 

 

 

By: Michael Schall - schallm

RE: Styled Text + isStrikeThrough + PDF

2005-05-05 12:16

I don't need styled text, I tried what you are saying first, with no luck. Styled text was just my last attempt.

 

I tried the strikethrough property on the font element within the textElement node and it seems that a Static Text control will show the strikethrough on top of the text, but if I use a Text Field, the strikethrough is behind the text.

 

Thanks for the quick response.

Mike

 

 

 

 

 

 

By: Teodor Danciu - teodord

RE: Styled Text + isStrikeThrough + PDF

2005-05-05 12:59

 

Hi,

 

Have you checked the provided "fonts" sample?

Strikethrough text seems to work there very well.

 

I hope this helps.

Teodor

 

 

 

 

 

By: Michael Schall - schallm

RE: Styled Text + isStrikeThrough + PDF

2005-05-06 07:24

Yes it does work in the sample. Like I said in my last post it works if the type of element you are using is StaticText. However, if I use a textElement, the strike through is behind the text.

 

I have created a sample where I have a static text element and a textElement on the same report. Both with the strike through set to true. The static text works while the text element does not.

 

Again, thanks for your help.

 

 

 

 

By: Paulo Soares - psoares33

RE: Styled Text + isStrikeThrough + PDF

2005-05-06 07:45

This is a bug in iText. iText places the strikethrough and then the background. If you don't have a background all is well otherwise it will be over the strikethrough.

 

 

 

 

By: Michael Schall - schallm

RE: Styled Text + isStrikeThrough + PDF

2005-05-06 11:21

I assume by background you mean the text?

 

I have solved my problem. There is a mode setting that was set to Opaque by default by the tool we are using. If I set that to transparent, everything works fine. Even the strikethrought of the styled text works.

 

Thanks

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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...