Class: FlowDocument

Core.PDFNet. FlowDocument


new FlowDocument()

[Missing documentation]

Extends

Methods


<static> create()

Constructor
Returns:
A promise that resolves to an object of type: "PDFNet.FlowDocument"
Type
Promise.<Core.PDFNet.FlowDocument>

addParagraph()

Returns:
A promise that resolves to an object of type: "PDFNet.Paragraph"
Type
Promise.<Core.PDFNet.Paragraph>

addParagraphWithText(text)

Parameters:
Name Type Description
text string
Returns:
A promise that resolves to an object of type: "PDFNet.Paragraph"
Type
Promise.<Core.PDFNet.Paragraph>

destroy()

Destructor
Inherited From:
Returns:
Type
Promise.<void>

paginateToPDF()

Returns:
A promise that resolves to an object of type: "PDFNet.PDFDoc"
Type
Promise.<Core.PDFNet.PDFDoc>

setDefaultMargins(left, top, right, bottom)

Parameters:
Name Type Description
left number
top number
right number
bottom number
Returns:
Type
Promise.<void>

setDefaultPageSize(width, height)

Parameters:
Name Type Description
width number
height number
Returns:
Type
Promise.<void>

takeOwnership()

Take the ownership of this object, so that PDFNet.runWithCleanup won't destroy this object.
Inherited From:
Returns:
Type
void