LineSpacing

Applies to

PDFTextLayout object

Description

Gets or sets the spacing between lines in the PDF document

Data type

Real. The unit is percentage. For example, if the value is 200, it means 200% of the regular spacing.

Usage

In scripts

The LineSpacing property sets the spacing between the lines in the text or text block in a PDF document. By default, it is 100, meaning 100% (regular spacing). The value n means n% of the regular spacing.

The following example uses the PDFTextLayout object to set the layout of a PDFMultilineText object:

lpdf_mtext = create PDFmultilinetext
lpdf_layout = create PDFtextlayout

lpdf_layout.leftindent = 100
lpdf_layout.rightindent = 100
lpdf_layout.charspacing = 10
lpdf_layout.firstlineindent = 100
lpdf_layout.linespacing = 500
lpdf_layout.alignment= PDFTextAlignCenter!

lpdf_mtext.width = lpdf_page.getwidth( )
lpdf_mtext.content="The PDFDocument object allows to import data from a DataWindow object, a DataWindowChild object or a DataStore object, or an existing PDF document to a new PDF document and save the document."
lpdf_mtext.layout = lpdf_layout