What is Incisor?
Tutorials
Key Concepts
Reddit
Stack Overflow
Configuration Settings
Deprecation Schedule

PdfTextFrame()

A PdfTextFrame is an object that resides within a PdfSection, PdfHeader or PdfFooter and can contain PdfParagraphs, PdfImages and PdfTables within it. [NON-INSTANTIABLE]

new PdfTextFrame()

A PdfTextFrame is an object that resides within a PdfSection, PdfHeader or PdfFooter and can contain PdfParagraphs, PdfImages and PdfTables within it. [NON-INSTANTIABLE]

MEMBERS

bottomMargin :number

The size of the bottom margin of the pages within this PdfTextFrame.

Default Value:
  • 0

height :number

The height of this PdfTextFrame.

Default Value:
  • 0

inheritedTypes :object

Dictionary object listing all of the types this object is compatible with.

leftMargin :number

The size of the left margin of the pages within this PdfTextFrame.

Default Value:
  • 0

rightMargin :number

The size of the right margin of the pages within this PdfTextFrame.

Default Value:
  • 0

topMargin :number

The size of the top margin of the pages within this PdfTextFrame.

Default Value:
  • 0

type :string

Type identifier.

width :number

The width of this PdfTextFrame.

Default Value:
  • 0

METHODS

addImage(imagePath, isPathRelative (opt), justificationH (opt), justificationV (opt)) returns {PdfImage}

Adds a new Image to this PdfTextFrame and returns it.

Parameters:
Name Type Attributes Default Description
imagePath string  

The path of the image being added within this PdfTextFrame.

isPathRelative boolean <optional>
 

Bool stating if the given path is relative to the project path or an absolute path. If an absolute path is used that is outside of the project directory, the 'allowUniversalFileIO' item in application settings must be set to true. [DEFAULT: true]

justificationH string <optional>
 

The horizontal justification of the image being added to this PdfTextFrame. For acceptable values, see 'nc.constants.justfications'. [DEFAULT: "center"]

justificationV string <optional>
 

The vertical justification of the image being added to this PdfTextFrame. For acceptable values, see 'nc.constants.justfications'. [DEFAULT: "center"]

Returns:
PdfImage

addParagraph() returns {PdfParagraph}

Adds a new PdfParagraph to this PdfTextFrame and returns it. A PdfParagraph is simply a block of text.

Returns:
PdfParagraph

addTable(numRows, numCols, columnWidths) returns {PdfTable}

Adds a new PdfTable to this PdfTextFrame and returns it.

Parameters:
Name Type Attributes Default Description
numRows number    

The number of rows to add to this PdfTextFrame.

numCols number    

The number of columns to add to each PdfRow in this PdfTextFrame.

columnWidths Array.<number> | number    

An array containing the desired widths for each column in this PdfTextFrame.

Returns:
PdfTable