new Chart()
A Chart is a content element that displays a chart described by a JSON
definition string.
Extends
Methods
-
asChart()
-
- Inherited From:
Returns:
A promise that resolves to an object of type: "PDFNet.Chart"- Type
- Promise.<Core.PDFNet.Chart>
-
asContentNode()
-
- Inherited From:
Returns:
A promise that resolves to an object of type: "PDFNet.ContentNode"- Type
- Promise.<Core.PDFNet.ContentNode>
-
asFloat()
-
- Inherited From:
Returns:
A promise that resolves to an object of type: "PDFNet.Float"- Type
- Promise.<Core.PDFNet.Float>
-
asList()
-
- Inherited From:
Returns:
A promise that resolves to an object of type: "PDFNet.List"- Type
- Promise.<Core.PDFNet.List>
-
asListItem()
-
- Inherited From:
Returns:
A promise that resolves to an object of type: "PDFNet.ListItem"- Type
- Promise.<Core.PDFNet.ListItem>
-
asPageNumber()
-
- Inherited From:
Returns:
A promise that resolves to an object of type: "PDFNet.PageNumber"- Type
- Promise.<Core.PDFNet.PageNumber>
-
asParagraph()
-
- Inherited From:
Returns:
A promise that resolves to an object of type: "PDFNet.Paragraph"- Type
- Promise.<Core.PDFNet.Paragraph>
-
asShape()
-
- Inherited From:
Returns:
A promise that resolves to an object of type: "PDFNet.Shape"- Type
- Promise.<Core.PDFNet.Shape>
-
asTable()
-
- Inherited From:
Returns:
A promise that resolves to an object of type: "PDFNet.Table"- Type
- Promise.<Core.PDFNet.Table>
-
asTableCell()
-
- Inherited From:
Returns:
A promise that resolves to an object of type: "PDFNet.TableCell"- Type
- Promise.<Core.PDFNet.TableCell>
-
asTableRow()
-
- Inherited From:
Returns:
A promise that resolves to an object of type: "PDFNet.TableRow"- Type
- Promise.<Core.PDFNet.TableRow>
-
asTextRun()
-
- Inherited From:
Returns:
A promise that resolves to an object of type: "PDFNet.TextRun"- Type
- Promise.<Core.PDFNet.TextRun>
-
getContentNodeIterator()
-
Retrieve a ContentElementIterator object from the content node
The ContentElementIterator object can be used to traverse the children of the content node.
- Inherited From:
Returns:
A promise that resolves to the ContentElementIterator object- Type
- Promise.<Core.PDFNet.Iterator.<Core.PDFNet.ContentElement>>
-
getHeight()
-
Get the chart height in points.
Returns:
A promise that resolves to the chart height in points.- Type
- Promise.<number>
-
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.<Core.PDFNet.TextStyledElement>
-
getWidth()
-
Get the chart width in points.
Returns:
A promise that resolves to the chart width in points.- Type
- Promise.<number>
-
setDefinition(json)
-
Parameters:
Name Type Description jsonstring Returns:
- Type
- Promise.<void>
-
setHeight(height)
-
Set the chart height in points.
Parameters:
Name Type Description heightnumber The chart height in points. Returns:
- Type
- Promise.<void>
-
setWidth(width)
-
Set the chart width in points.
Parameters:
Name Type Description widthnumber The chart width in points. Returns:
- Type
- Promise.<void>