Skip to content

ParagraphAttributes

app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes

Specifies the properties and attributes of a paragraph contained in a text frame.


app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.autoLeadingAmount

Auto leading amount expressed as a percentage.

Number (double).


app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.bunriKinshi

If true, BunriKinshi is enabled.

Boolean.


app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.burasagariType

The Burasagari type.

BurasagariTypeEnum


app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.desiredGlyphScaling

Desired glyph scaling, expressed as a percentage of the default character width.

Range: 50.0 to 200.0. At 100.0, the width of characters is not changed.

Number (double).


app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.desiredLetterSpacing

Desired letter, spacing expressed as a percentage of the default kerning or tracking.

Range: -100.0 to 500.0. At 0, no space is added between letters. At 100.0, an entire space width is added between letters.

Number (double).


app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.desiredWordSpacing

Desired word spacing, expressed as a percentage of the default space for the font.

Range: 0.0 to 1000.0; at 100.00. No space is added between words.

Number (double).


app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.everyLineComposer

If true, the Every-line Composer is enabled. If false, the Single-line Composer is enabled.

Boolean.


app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.firstLineIndent

First line left indent in points.

Number (double).


ParagraphAttributes.hyphenateCapitalizedWords

Section titled “ParagraphAttributes.hyphenateCapitalizedWords”

app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.hyphenateCapitalizedWords

If true, hyphenation is enabled for capitalized words.

Boolean.


app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.hyphenation

If true, hyphenation is enabled for the paragraph.

Boolean.


app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.hyphenationPreference

Hyphenation preference scale for better spacing (0) or fewer hyphens (1).

Range: 0.0 to 1.0.

Number (double).


app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.hyphenationZone

The distance (in points) from the right edge of the paragraph that marks the part of the line where hyphenation is not allowed.

Number (double).


app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.justification

Paragraph justification.

Justification


app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.kinsoku

The Kinsoku Shori name.

String.


app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.kinsokuOrder

The preferred Kinsoku order.

KinsokuOrderEnum


app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.kurikaeshiMojiShori

If true, KurikaeshiMojiShori is enabled.

Boolean.


app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.leadingType

Auto leading type.

AutoLeadingType


app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.leftIndent

The left indent of margin in points.

Number (double).


ParagraphAttributes.maximumConsecutiveHyphens

Section titled “ParagraphAttributes.maximumConsecutiveHyphens”

app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.maximumConsecutiveHyphens

Maximum number of consecutive hyphenated lines.

Number (long).


app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.maximumGlyphScaling

Maximum glyph scaling, expressed as a percentage of the default character width.

Range: 50.0 to 200.0; at 100.0. The width of characters is not changed.

Number (double).


app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.maximumLetterSpacing

Maximum letter spacing, expressed as a percentage of the default kerning or tracking.

Range: -100.0 to 500.0; at 0. No space is added between letters. At 100.0, an entire space width is added between letters.

Number (double).


app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.maximumWordSpacing

Maximum word spacing, expressed as a percentage of the default space for the font.

Range: 0.0 to 1000.0; at 100.00. No space is added between words.

Number (double).


app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.minimumAfterHyphen

Minimum number of characters after a hyphen.

Number (long).


app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.minimumBeforeHyphen

Minimum number of characters before a hyphen.

Number (long).


app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.minimumGlyphScaling

Minimum glyph scaling, expressed as a percentage of the default character width.

Range: 50.0 to 200.0. At 100.0, the width of characters is not changed.

Number (double).


ParagraphAttributes.minimumHyphenatedWordSize

Section titled “ParagraphAttributes.minimumHyphenatedWordSize”

app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.minimumHyphenatedWordSize

Minimum number of characters for a word to be hyphenated.

Number (long).


app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.minimumLetterSpacing

Minimum letter spacing, expressed as a percentage of the default kerning or tracking Range: -100.0 to 500.0; at 0. No space is added between letters. At 100.0, an entire space width is added between letters.

Number (double).


app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.minimumWordSpacing

Minimum word spacing, expressed as a percentage of the default space for the font.

Range: 0.0 to 1000.0; at 100.00. No space is added between words.

Number (double).


app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.mojikumi

The Mojikumi name.

String.


app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.parent

The object’s container.

Object; read-only.


app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.rightIndent

Right indent of margin in points.

Number (double).


app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.romanHanging

If true, Roman hanging punctuation is enabled.

Boolean.


ParagraphAttributes.singleWordJustification

Section titled “ParagraphAttributes.singleWordJustification”

app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.singleWordJustification

Single word justification.

Justification


app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.spaceAfter

Spacing after paragraph in points.

Number (double).


app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.spaceBefore

Spacing before paragraph in points.

Number (double).


app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.tabStops

Tab stop settings.

TabStopInfo


app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.typename

The class name of the object.

String; read-only.


// Creates a new document with 1 text frame and 3 paragraphs
// then gives each paragraph a different justification
var docRef = documents.add();
var pathRef = docRef.pathItems.rectangle(600, 200, 200, 400);
var textRef = docRef.textFrames.areaText(pathRef);
textRef.paragraphs.add("Left justified paragraph.");
textRef.paragraphs.add("Center justified paragraph.");
textRef.paragraphs.add("Right justified paragraph.");
textRef.textRange.characterAttributes.size = 28;
// change the justification of each paragraph
// using the paragraph attributes object
var paraAttr_0 = textRef.paragraphs[0].paragraphAttributes;
paraAttr_0.justification = Justification.RIGHT;
var paraAttr_1 = textRef.paragraphs[1].paragraphAttributes;
paraAttr_1.justification = Justification.CENTER;
var paraAttr_2 = textRef.paragraphs[2].paragraphAttributes;
paraAttr_2.justification = Justification.LEFT;