We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Setting Text

Hi Aspose Support,
What is the difference between the following three functions -


setText depends on what class are you implementing. For example, HeaderElement has it but DivElement does not.

Since I am not part of the dev team I researched Tagged Pdf standars for a bit.

The other methods are part of the StructureElement class, so that means they must be part of the Tagged PDF standards, and I look for them and they were. I found the definitions for some properties I think you would like to know:

  • The Actual Text attribute is used for text rendered in a way that a screen reader can not interpret – such as a graphic or a character that does not map to Unicode. Actual Text is short, frequently just one character, and can be used inline, for example as part of a paragraph or even part of a word. Examples include a drop cap or a non-standard list bullet.
  • The Alt Text attribute is a description of a figure that conveys information. It can be detailed, and as long as necessary to convey the same meaning as the figure.
  • Expansion Text is used to define an acronym or jargon term on first use.

I copy those definitions, so they are not mine. I hope this information is good enough for you.