[]
        
(Showing Draft Content)

IPdfTextDrawSettings Interface

IPdfTextDrawSettings Interface

Represents the settings used by PdfPageArea.drawText method to draw a text with the specified PdfPen and PdfBrush.

Heirarchy

Properties

Optional align

Determines how text is aligned within the drawing area. The default value is PdfTextHorizontalAlign.Left.

Optional baseline

baseline: PdfTextBaseline

Determines the current text baseline. The default value is PdfTextBaseline.Top.

Optional brush

brush: PdfBrush | Color | string

Determines the brush to fill the text. If not specified, the default document brush will be used (PdfDocument.setBrush method).

Optional characterSpacing

characterSpacing: number

Determines the spacing between text characters. The default value is 0.

Optional columnGap

columnGap: number

Determines the spacing between each column, in points. The default value is 18.

Optional columns

columns: number

Determines the number of columns to flow the text into. The default value is 1.

Optional continued

continued: boolean

Indicates whether subsequent text should be continued right after that or it will be a new paragraph. If true, the text settings will be retained between drawText calls. It means that options argument will be merged with the one taken from the previous drawText call.

The default value is false.

Optional ellipsis

ellipsis: any

Determines the character to display at the end of the text when it exceeds the given area.The default value is undefined, that is, ellipsis is not displayed. Set to true to use the default character.

Optional fill

fill: boolean

Indicates whether the text should be filled or not. The default value is true.

Optional font

font: PdfFont

Determines the font to use. If not specified, the default document font will be used (PdfDocument.setFont method).

Optional height

height: number

Determines the height of the drawing area in points to which the text should be clipped. The default value is undefined which means that the text area will be limited by bottom edge of the body section. Use Infinity to indicate that the text area has an infinite height.

Optional indent

indent: number

Determines the value of indentaion in each paragraph of text, in points. The default value is 0.

Optional lineBreak

lineBreak: boolean

Indicates whether line wrapping should be used or not. The property is ignored if IPdfTextSettings.width is defined. The default value is true.

Optional lineGap

lineGap: number

Determines the spacing between lines of text. The default value is 0.

link: string

Determines a URL used to create a link annotation (URI action).

Optional paragraphGap

paragraphGap: number

Determines the spacing between paragraphs of text. The default value is 0.

Optional pen

pen: PdfPen | Color | string

Determines the pen to stroke the text. If not specified, the default document pen will be used (PdfDocument.setPen method).

Optional strike

strike: boolean

Indicates whether the text should be striked out or not. The default value is false.

Optional stroke

stroke: boolean

Indicates whether the text should be stroked or not. The default value is false.

Optional underline

underline: boolean

Indicates whether the text should be underlined or not. The default value is false.

Optional width

width: number

Determines the width of the text area in points to which the text should wrap. The default value is undefined which means that the text area will be limited by right margin of the page. Use Infinity to indicate that the text area has an infinite width. If defined, forces the IPdfTextSettings.lineBreak property to be enabled.

Optional wordSpacing

wordSpacing: number

Determines the spacing between words in the text. The default value is 0.