ParagraphAttributes
ParagraphAttributes
Section titled “ParagraphAttributes”app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes
Description
Section titled “Description”Specifies the properties and attributes of a paragraph contained in a text frame.
Properties
Section titled “Properties”ParagraphAttributes.autoLeadingAmount
Section titled “ParagraphAttributes.autoLeadingAmount”app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.autoLeadingAmount
Description
Section titled “Description”Auto leading amount expressed as a percentage.
Number (double).
ParagraphAttributes.bunriKinshi
Section titled “ParagraphAttributes.bunriKinshi”app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.bunriKinshi
Description
Section titled “Description”If true
, BunriKinshi is enabled.
Boolean.
ParagraphAttributes.burasagariType
Section titled “ParagraphAttributes.burasagariType”app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.burasagariType
Description
Section titled “Description”The Burasagari type.
ParagraphAttributes.desiredGlyphScaling
Section titled “ParagraphAttributes.desiredGlyphScaling”app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.desiredGlyphScaling
Description
Section titled “Description”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).
ParagraphAttributes.desiredLetterSpacing
Section titled “ParagraphAttributes.desiredLetterSpacing”app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.desiredLetterSpacing
Description
Section titled “Description”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).
ParagraphAttributes.desiredWordSpacing
Section titled “ParagraphAttributes.desiredWordSpacing”app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.desiredWordSpacing
Description
Section titled “Description”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).
ParagraphAttributes.everyLineComposer
Section titled “ParagraphAttributes.everyLineComposer”app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.everyLineComposer
Description
Section titled “Description”If true
, the Every-line Composer is enabled. If false
, the Single-line Composer is enabled.
Boolean.
ParagraphAttributes.firstLineIndent
Section titled “ParagraphAttributes.firstLineIndent”app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.firstLineIndent
Description
Section titled “Description”First line left indent in points.
Number (double).
ParagraphAttributes.hyphenateCapitalizedWords
Section titled “ParagraphAttributes.hyphenateCapitalizedWords”app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.hyphenateCapitalizedWords
Description
Section titled “Description”If true
, hyphenation is enabled for capitalized words.
Boolean.
ParagraphAttributes.hyphenation
Section titled “ParagraphAttributes.hyphenation”app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.hyphenation
Description
Section titled “Description”If true
, hyphenation is enabled for the paragraph.
Boolean.
ParagraphAttributes.hyphenationPreference
Section titled “ParagraphAttributes.hyphenationPreference”app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.hyphenationPreference
Description
Section titled “Description”Hyphenation preference scale for better spacing (0) or fewer hyphens (1).
Range: 0.0 to 1.0.
Number (double).
ParagraphAttributes.hyphenationZone
Section titled “ParagraphAttributes.hyphenationZone”app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.hyphenationZone
Description
Section titled “Description”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).
ParagraphAttributes.justification
Section titled “ParagraphAttributes.justification”app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.justification
Description
Section titled “Description”Paragraph justification.
ParagraphAttributes.kinsoku
Section titled “ParagraphAttributes.kinsoku”app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.kinsoku
Description
Section titled “Description”The Kinsoku Shori name.
String.
ParagraphAttributes.kinsokuOrder
Section titled “ParagraphAttributes.kinsokuOrder”app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.kinsokuOrder
Description
Section titled “Description”The preferred Kinsoku order.
ParagraphAttributes.kurikaeshiMojiShori
Section titled “ParagraphAttributes.kurikaeshiMojiShori”app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.kurikaeshiMojiShori
Description
Section titled “Description”If true
, KurikaeshiMojiShori is enabled.
Boolean.
ParagraphAttributes.leadingType
Section titled “ParagraphAttributes.leadingType”app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.leadingType
Description
Section titled “Description”Auto leading type.
ParagraphAttributes.leftIndent
Section titled “ParagraphAttributes.leftIndent”app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.leftIndent
Description
Section titled “Description”The left indent of margin in points.
Number (double).
ParagraphAttributes.maximumConsecutiveHyphens
Section titled “ParagraphAttributes.maximumConsecutiveHyphens”app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.maximumConsecutiveHyphens
Description
Section titled “Description”Maximum number of consecutive hyphenated lines.
Number (long).
ParagraphAttributes.maximumGlyphScaling
Section titled “ParagraphAttributes.maximumGlyphScaling”app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.maximumGlyphScaling
Description
Section titled “Description”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).
ParagraphAttributes.maximumLetterSpacing
Section titled “ParagraphAttributes.maximumLetterSpacing”app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.maximumLetterSpacing
Description
Section titled “Description”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).
ParagraphAttributes.maximumWordSpacing
Section titled “ParagraphAttributes.maximumWordSpacing”app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.maximumWordSpacing
Description
Section titled “Description”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).
ParagraphAttributes.minimumAfterHyphen
Section titled “ParagraphAttributes.minimumAfterHyphen”app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.minimumAfterHyphen
Description
Section titled “Description”Minimum number of characters after a hyphen.
Number (long).
ParagraphAttributes.minimumBeforeHyphen
Section titled “ParagraphAttributes.minimumBeforeHyphen”app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.minimumBeforeHyphen
Description
Section titled “Description”Minimum number of characters before a hyphen.
Number (long).
ParagraphAttributes.minimumGlyphScaling
Section titled “ParagraphAttributes.minimumGlyphScaling”app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.minimumGlyphScaling
Description
Section titled “Description”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
Description
Section titled “Description”Minimum number of characters for a word to be hyphenated.
Number (long).
ParagraphAttributes.minimumLetterSpacing
Section titled “ParagraphAttributes.minimumLetterSpacing”app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.minimumLetterSpacing
Description
Section titled “Description”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).
ParagraphAttributes.minimumWordSpacing
Section titled “ParagraphAttributes.minimumWordSpacing”app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.minimumWordSpacing
Description
Section titled “Description”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).
ParagraphAttributes.mojikumi
Section titled “ParagraphAttributes.mojikumi”app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.mojikumi
Description
Section titled “Description”The Mojikumi name.
String.
ParagraphAttributes.parent
Section titled “ParagraphAttributes.parent”app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.parent
Description
Section titled “Description”The object’s container.
Object; read-only.
ParagraphAttributes.rightIndent
Section titled “ParagraphAttributes.rightIndent”app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.rightIndent
Description
Section titled “Description”Right indent of margin in points.
Number (double).
ParagraphAttributes.romanHanging
Section titled “ParagraphAttributes.romanHanging”app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.romanHanging
Description
Section titled “Description”If true
, Roman hanging punctuation is enabled.
Boolean.
ParagraphAttributes.singleWordJustification
Section titled “ParagraphAttributes.singleWordJustification”app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.singleWordJustification
Description
Section titled “Description”Single word justification.
ParagraphAttributes.spaceAfter
Section titled “ParagraphAttributes.spaceAfter”app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.spaceAfter
Description
Section titled “Description”Spacing after paragraph in points.
Number (double).
ParagraphAttributes.spaceBefore
Section titled “ParagraphAttributes.spaceBefore”app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.spaceBefore
Description
Section titled “Description”Spacing before paragraph in points.
Number (double).
ParagraphAttributes.tabStops
Section titled “ParagraphAttributes.tabStops”app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.tabStops
Description
Section titled “Description”Tab stop settings.
ParagraphAttributes.typename
Section titled “ParagraphAttributes.typename”app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.typename
Description
Section titled “Description”The class name of the object.
String; read-only.
Example
Section titled “Example”Changing justification in paragraphs
Section titled “Changing justification in paragraphs”// 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 objectvar 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;