A: AbstractElement methods

MethodText / LinkImageTabAreaBreak addStyle() Yes Yes No No setHyphenation() Yes No No No setSplitCharacters() Yes No No No setHorizontalAlignment() No Yes No

MethodText / LinkImageTabAreaBreak

addStyle()

Yes

Yes

No

No

setHyphenation()

Yes

No

No

No

setSplitCharacters()

Yes

No

No

No

setHorizontalAlignment()

No

Yes

No

No

setTextAlignment()

No

No

No

No

setHeight()

No

Yes

No

No

setWidth()

No

Yes

No

No

setWidthPercent()

No

Yes

No

No

setBorder()

Yes

Yes*

No

No

setBorderLeft()

Yes

Yes*

No

No

setBorderRight()

Yes

Yes*

No

No

setBorderTop()

Yes

Yes*

No

No

setBorderBottom()

Yes

Yes*

No

No

setBackgroundColor()

Yes

Yes*

No

No

setFont()

Yes

No

No

No

setFontSize()

Yes

No

No

No

setFontColor()

Yes

No

No

No

setBold()

Yes

No

No

No

setItalic()

Yes

No

No

No

setLineThrough()

Yes

No

No

No

setUnderline()

Yes

No

No

No

setTextRenderingMode()

Yes

No

No

No

setStrokeColor()

Yes

No

No

No

setStrokeWidth()

Yes

No

No

No

setCharacterSpacing()

Yes

No

No

No

setWordSpacing()

Yes

No

No

No

setFontKerning()

Typ

No

No

No

setFontScript()

Typ

No

No

No

setBaseDirection()

Typ

No

No

No

setRelativePosition()

Yes

Yes

No

No

setFixedPosition()

No

Yes

No

No

setAction()

Yes

Yes

No

No

setDestination()

Yes

Yes

No

No

In the Image column, some methods have an asterisk next to "Yes". The asterisk means that you may not notice that the method works because the image isn't transparent. For instance: it doesn't make sense to set a background color for an opaque image: the image covers the background completely. The same is true for borders.


Share this article

Ready to use iText?

Try our iText 7 Library and add-ons FREE for 30 days. Test your proof of concept, and see if our solution is right for you.

Get my FREE trial
Contact

Still have questions? 

We're happy to answer your questions. Reach out to us and we'll get back to you shortly.

Contact us
Stay updated

Join 11,000+ subscribers and become an iText PDF expert by staying up to date with our new products, updates, tips, technical solutions and happenings.

Subscribe Now