CharSpacing

Applies to

PDFTextLayout object, PDFFormFieldPushButton object, and PDFFormFieldText object.

Description

Gets or sets the spacing between characters in the object.

Data type

Real. The unit is point (pt).

Usage

In scripts

The CharSpacing property sets the spacing between the characters in the text or text block in the object. The unit is point (pt).

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