Skip to main content
Skip table of contents

Appendix

A:AbstractElement methods

Method

Text / Link

Image

Tab

AreaBreak

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.

B: BlockElement methods

Method

Paragraph

Div

List

Table

Cell

LineSeparator

addStyle()

Yes

Yes

Yes

Yes

Yes

Yes

setHyphenation()

Yes

Yes

Yes

Yes

Yes

No

setSplitCharacters()

Yes

Yes

Yes

Yes

Yes

No

setHorizontalAlignment()

Yes

Yes

Yes

Yes

No

Yes

setVerticalAlignment()

No

No

No

No

Yes

No

setRotationAngle()

Yes

Yes

Yes

No

Yes

No

setTextAlignment()

Yes

Yes

Yes

Yes

Yes

No

setKeepTogether()

Yes

Yes

Yes

Yes

Yes

No

setKeepWithNext()

Yes*

Yes*

Yes*

Yes*

No

Yes*

setHeight()

Yes

Yes

Yes

No

Yes

No

setWidth()

Yes

Yes

Yes

Yes

No

Yes

setWidthPercent()

Yes

Yes

Yes

Yes

No

Yes

setMargin()

Yes

Yes

Yes

Yes

Yes

Yes

setMargins()

Yes

Yes

Yes

Yes

Yes

Yes

setMarginLeft()

Yes

Yes

Yes

Yes

Yes

Yes

setMarginRight()

Yes

Yes

Yes

Yes

Yes

Yes

setMarginTop()

Yes

Yes

Yes

Yes

Yes

Yes

setMarginBottom()

Yes

Yes

Yes

Yes

Yes

Yes

setPadding()

Yes

Yes

Yes

No

Yes

No

setPaddings()

Yes

Yes

Yes

No

Yes

No

setPaddingLeft()

Yes

Yes

Yes

No

Yes

No

setPaddingRight()

Yes

Yes

Yes

No

Yes

No

setPaddingTop()

Yes

Yes

Yes

No

Yes

No

setPaddingBottom()

Yes

Yes

Yes

No

Yes

No

setBorder()

Yes

Yes

Yes

Yes

Yes

No

setBorderLeft()

Yes

Yes

Yes

Yes

Yes

No

setBorderRight()

Yes

Yes

Yes

Yes

Yes

No

setBorderTop()

Yes

Yes

Yes

Yes

Yes

No

setBorderBottom()

Yes

Yes

Yes

Yes

Yes

No

setBackgroundColor()

Yes

Yes

Yes

Yes

Yes

Yes

setFont()

Yes

Yes

Yes

Yes

Yes

No

setFontSize()

Yes

Yes

Yes

Yes

Yes

No

setFontColor()

Yes

Yes

Yes

Yes

Yes

No

setBold()

Yes

Yes

Yes

Yes

Yes

No

setItalic()

Yes

Yes

Yes

Yes

Yes

No

setLineThrough()

Yes

Yes

Yes

Yes

Yes

No

setUnderline()

Yes

Yes

Yes

Yes

Yes

No

setTextRenderingMode()

Yes

Yes

Yes

Yes

Yes

No

setStrokeColor()

Yes

Yes

Yes

Yes

Yes

No

setStrokeWidth()

Yes

Yes

Yes

Yes

Yes

No

setSpacingRatio()

Yes

Yes

Yes

Yes

Yes

No

setCharacterSpacing()

Yes

Yes

Yes

Yes

Yes

No

setWordSpacing()

Yes

Yes

Yes

Yes

Yes

No

setFontKerning()

Typ

Typ

Typ

Typ

Typ

No

setFontScript()

Typ

Typ

Typ

Typ

Typ

No

setBaseDirection()

Typ

Typ

Typ

Typ

Typ

No

setRelativePosition()

Yes

Yes

Yes

Yes

Yes

No

setFixedPosition()

Yes

Yes

Yes

Yes

Yes

No

setAction()

Yes

Yes

Yes

Yes

Yes

Yes

setDestination()

Yes

Yes

Yes

Yes

Yes

Yes

There's an asterisk added to the "Yes" value of setKeepWithNext() because this method only works for objects added directly to the Document. It won't work for nested objects.

C: RootElement methods

Method

Document

Canvas

setHyphenation()

Yes

Yes

setSplitCharacters()

Yes

Yes

setHorizontalAlignment()

No

No

setTextAlignment()

Yes

Yes

setHeight()

No

No

setWidth()

No

No

setWidthPercent()

No

No

setBorder()

No

No

setBorderLeft()

No

No

setBorderRight()

No

No

setBorderTop()

No

No

setBorderBottom()

No

No

setBackgroundColor()

No

No

setFont()

Yes

Yes

setFontSize()

Yes

Yes

setFontColor()

Yes

Yes

setBold()

Yes

Yes

setItalic()

Yes

Yes

setLineThrough()

Yes

Yes

setUnderline()

Yes

Yes

setTextRenderingMode()

Yes

Yes

setStrokeColor()

Yes

Yes

setStrokeWidth()

Yes

Yes

setCharacterSpacing()

Yes

Yes

setWordSpacing()

Yes

Yes

setFontKerning()

Typ

Typ

setFontScript()

Typ

Typ

setBaseDirection()

Typ

Typ

setRelativePosition()

No

No

setFixedPosition()

No

No

setDestination()

No

No

showTextAligned()

Yes

Yes

showTextAlignedKerned()

Typ

Typ

add(BlockElement)

Yes

Yes

add(Image)

Yes

Yes

add(AreaBreak)

Yes

No

setMargins()

Yes

No

setLeftMargin()

Yes

No

setRightMargin()

Yes

No

setTopMargin()

Yes

No

setBottomMargin()

Yes

No



JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.