new PdfParagraph()
A PdfParagraph is an object defining a block of text and the associated formatting within a Pdf. To make a new PdfParagraph, call 'addParagraph' on the PdfSection, PdfCell, PdfHeader or PdfFooter, you wish to add the block of text to. [NON-INSTANTIABLE]
MEMBERS
-
bold :boolean
-
Boolean determining if the text in this PdfParagraph should be bold.
- Default Value:
- false
-
fontColor :Color
-
The color of the text in this PdfParagraph.
- Default Value:
- Color(0,0,0,1)
-
fontName :string
-
The name of the font that will be used to render the text in this PdfParagraph. This value will default to the defualtFontName value of the containing Pdf. To use a new font, you must define it using "Pdf.defineFont", and also ensure that the associated font files are in the 'Pdf Fonts' directory of the IncisorĀ® application support directory, which can be accessed from the IncisorĀ® menu.
- Default Value:
- defaultFontName
-
fontSize :number
-
The height of the pages within this PdfSection. This value will default to the defaultFontSize value of the containing Pdf.
- Default Value:
- defaultFontSize
-
inheritedTypes :object
-
Dictionary object listing all of the types this object is compatible with.
-
italic :boolean
-
Boolean determining if the text in this PdfParagraph should be italicized.
- Default Value:
- false
-
justificationH :string
-
The justification of the text in this PdfParagraph. For acceptable values, see 'nc.constants.justfications'.
- Default Value:
- "center"
-
leftIndent :number
-
The left indentation amount of this PdfParagraph.
- Default Value:
- 0
-
rightIndent :number
-
The right indentation amount of this PdfParagraph.
- Default Value:
- 0
-
spaceAfter :number
-
The space size that will be added after this PdfParagraph.
- Default Value:
- 0
-
spaceBefore :number
-
The space size that will be added before this PdfParagraph.
- Default Value:
- 0
-
text :string
-
The text to be displayed in this PdfParagraph.
- Default Value:
- ""
-
type :string
-
Type identifier.
-
underline :string
-
The underline type of the text in this PdfPagraph. For acceptable values, see 'nc.constants.pdfUnderlineTypes'.
- Default Value:
- ""
METHODS
-
addPageField()
-
Adds a page number to the end of this PdfParagraph.