I’m trying to detect text fragments with strikethrough formatting. TextFragment hierarchy doesn’t seem to have anything related to that text/font property.
Can you advise how to do that?
The strikeout is a physically line drawing behind the text. And there is no markup or properties that allow to determine strikeout text.
However if the text is strikeout using StrikeOutAnnotation then you can find annotation first and later get text from its rect as suggested in this post.
We are sorry for the inconvenience.
hi, is there any update on this strikethrough or strikeout issue? I hope you guys can provide a fix as we are facing problem with pdf documents generated with strikeout text. thank you!
I am afraid it is not possible to determine strikeout text in common cases. The strikeout is a physically line drawn behind the text and there is no markup or properties that allow to determine strikeout text.