new TextRun()
A TextRun is a content element that represents a single run of text. A
paragraph can contain multiple TextRun objects.
Extends
Methods
-
asContentNode()
-
- Inherited From:
Returns:
A promise that resolves to an object of type: "PDFNet.ContentNode"- Type
- Promise.<PDFNet.ContentNode>
-
asList()
-
- Inherited From:
Returns:
A promise that resolves to an object of type: "PDFNet.List"- Type
- Promise.<PDFNet.List>
-
asListItem()
-
- Inherited From:
Returns:
A promise that resolves to an object of type: "PDFNet.ListItem"- Type
- Promise.<PDFNet.ListItem>
-
asParagraph()
-
- Inherited From:
Returns:
A promise that resolves to an object of type: "PDFNet.Paragraph"- Type
- Promise.<PDFNet.Paragraph>
-
asTable()
-
- Inherited From:
Returns:
A promise that resolves to an object of type: "PDFNet.Table"- Type
- Promise.<PDFNet.Table>
-
asTableCell()
-
- Inherited From:
Returns:
A promise that resolves to an object of type: "PDFNet.TableCell"- Type
- Promise.<PDFNet.TableCell>
-
asTableRow()
-
- Inherited From:
Returns:
A promise that resolves to an object of type: "PDFNet.TableRow"- Type
- Promise.<PDFNet.TableRow>
-
asTextRun()
-
- Inherited From:
Returns:
A promise that resolves to an object of type: "PDFNet.TextRun"- Type
- Promise.<PDFNet.TextRun>
-
getText()
-
Get the text content of the TextRun object
Returns:
A promise that resolves to the text content- Type
- Promise.<string>
-
getTextStyledElement()
-
Retrieve the TextStyledElement object for manipulating the text style of this content element.
- Inherited From:
Returns:
A promise that resolves to the TextStyledElement object- Type
- Promise.<PDFNet.TextStyledElement>
-
setText(text)
-
Set the text content of the TextRun object
Parameters:
Name Type Description text
string The text content to set Returns:
- Type
- Promise.<void>