new ContentContainer()
A content container is a content node that supports insertion of paragraphs,
tables and lists.
Extends
Methods
-
addList()
-
Adds a list to the document.
Returns:
A promise that resolves to the list object- Type
- Promise.<Core.PDFNet.List>
-
addParagraph()
-
Adds a paragraph to the document.
Returns:
A promise that resolves to the paragraph object- Type
- Promise.<Core.PDFNet.Paragraph>
-
addParagraphWithText(text)
-
Adds a paragraph to the document and sets the text.
Parameters:
Name Type Description textstring Returns:
A promise that resolves to the paragraph object- Type
- Promise.<Core.PDFNet.Paragraph>
-
addTable()
-
Adds a table to the document.
Returns:
A promise that resolves to the table object- Type
- Promise.<Core.PDFNet.Table>
-
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>>
-
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>