CompatibilityOptions

Inheritance: java.lang.Object

All Implemented Interfaces: java.lang.Cloneable

public class CompatibilityOptions implements Cloneable

Contains compatibility options (that is, the user preferences entered on the Compatibility tab of the Options dialog in Microsoft Word).

To learn more, visit the Detect File Format and Check Format Compatibility documentation article.

Examples:

Shows how to vertically align the text contents of a text box.


 Document doc = new Document();
 DocumentBuilder builder = new DocumentBuilder(doc);

 Shape shape = builder.insertShape(ShapeType.TEXT_BOX, 200.0, 200.0);

 // Set the "VerticalAnchor" property to "TextBoxAnchor.Top" to
 // align the text in this text box with the top side of the shape.
 // Set the "VerticalAnchor" property to "TextBoxAnchor.Middle" to
 // align the text in this text box to the center of the shape.
 // Set the "VerticalAnchor" property to "TextBoxAnchor.Bottom" to
 // align the text in this text box to the bottom of the shape.
 shape.getTextBox().setVerticalAnchor(verticalAnchor);

 builder.moveTo(shape.getFirstParagraph());
 builder.write("Hello world!");

 // The vertical aligning of text inside text boxes is available from Microsoft Word 2007 onwards.
 doc.getCompatibilityOptions().optimizeFor(MsWordVersion.WORD_2007);
 doc.save(getArtifactsDir() + "Shape.VerticalAnchor.docx");
 

Shows how to set an OOXML compliance specification for a saved document to adhere to.


 Document doc = new Document();
 DocumentBuilder builder = new DocumentBuilder(doc);

 // If we configure compatibility options to comply with Microsoft Word 2003,
 // inserting an image will define its shape using VML.
 doc.getCompatibilityOptions().optimizeFor(MsWordVersion.WORD_2003);
 builder.insertImage(getImageDir() + "Transparent background logo.png");

 Assert.assertEquals(ShapeMarkupLanguage.VML, ((Shape) doc.getChild(NodeType.SHAPE, 0, true)).getMarkupLanguage());

 // The "ISO/IEC 29500:2008" OOXML standard does not support VML shapes.
 // If we set the "Compliance" property of the SaveOptions object to "OoxmlCompliance.Iso29500_2008_Strict",
 // any document we save while passing this object will have to follow that standard.
 OoxmlSaveOptions saveOptions = new OoxmlSaveOptions();
 saveOptions.setCompliance(OoxmlCompliance.ISO_29500_2008_STRICT);
 saveOptions.setSaveFormat(SaveFormat.DOCX);

 doc.save(getArtifactsDir() + "OoxmlSaveOptions.Iso29500Strict.docx", saveOptions);

 // Our saved document defines the shape using DML to adhere to the "ISO/IEC 29500:2008" OOXML standard.
 doc = new Document(getArtifactsDir() + "OoxmlSaveOptions.Iso29500Strict.docx");

 Assert.assertEquals(ShapeMarkupLanguage.DML, ((Shape) doc.getChild(NodeType.SHAPE, 0, true)).getMarkupLanguage());
 

Methods

MethodDescription
getAdjustLineHeightInTable()Add Document Grid Line Pitch To Lines in Table Cells.
getAlignTablesRowByRow()Align Table Rows Independently.
getAllowSpaceOfSameStyleInTable()Allow Contextual Spacing of Paragraphs in Tables.
getApplyBreakingRules()Use Legacy Ethiopic and Amharic Line Breaking Rules.
getAutoSpaceLikeWord95()Emulate Word 95 Full-Width Character Spacing.
getAutofitToFirstFixedWidthCell()Allow Table Columns To Exceed Preferred Widths of Constituent Cells.
getBalanceSingleByteDoubleByteWidth()Balance Single Byte and Double Byte Characters.
getCachedColBalance()Use Cached Paragraph Information for Column Balancing.
getConvMailMergeEsc()Treat Backslash Quotation Delimiter as Two Quotation Marks.
getDisableOpenTypeFontFormattingFeatures()Specifies to disable OpenType font formatting features.
getDisplayHangulFixedWidth()Always Use Fixed Width for Hangul Characters.
getDoNotAutofitConstrainedTables()Do Not AutoFit Tables To Fit Next To Wrapped Objects.
getDoNotBreakConstrainedForcedTable()Don’t Break Table Rows Around Floating Tables.
getDoNotBreakWrappedTables()Do Not Allow Floating Tables To Break Across Pages.
getDoNotExpandShiftReturn()Don’t Justify Lines Ending in Soft Line Break.
getDoNotLeaveBackslashAlone()Convert Backslash To Yen Sign When Entered.
getDoNotSnapToGridInCell()Do Not Snap to Document Grid in Table Cells with Objects.
getDoNotSuppressIndentation()Do Not Ignore Floating Objects When Calculating Paragraph Indentation.
getDoNotSuppressParagraphBorders()Do Not Suppress Paragraph Borders Next To Frames.
getDoNotUseEastAsianBreakRules()Do Not Compress Compressible Characters When Using Document Grid.
getDoNotUseHTMLParagraphAutoSpacing()Use Fixed Paragraph Spacing for HTML Auto Setting.
getDoNotUseIndentAsNumberingTabStop()Ignore Hanging Indent When Creating Tab Stop After Numbering.
getDoNotVertAlignCellWithSp()Don’t Vertically Align Cells Containing Floating Objects.
getDoNotVertAlignInTxbx()Ignore Vertical Alignment in Textboxes.
getDoNotWrapTextWithPunct()Do Not Allow Hanging Punctuation With Character Grid.
getFootnoteLayoutLikeWW8()Emulate Word 6.x/95/97 Footnote Placement.
getForgetLastTabAlignment()Ignore Width of Last Tab Stop When Aligning Paragraph If It Is Not Left Aligned.
getGrowAutofit()Allow Tables to AutoFit Into Page Margins.
getLayoutRawTableWidth()Ignore Space Before Table When Deciding If Table Should Wrap Floating Object.
getLayoutTableRowsApart()Allow Table Rows to Wrap Inline Objects Independently.
getLineWrapLikeWord6()Emulate Word 6.0 Line Wrapping for East Asian Text.
getMWSmallCaps()Emulate Word 5.x for the Macintosh Small Caps Formatting.
getNoColumnBalance()Do Not Balance Text Columns within a Section.
getNoExtraLineSpacing()Do Not Center Content on Lines With Exact Line Height.
getNoLeading()Do Not Add Leading Between Lines of Text.
getNoSpaceRaiseLower()Do Not Increase Line Height for Raised/Lowered Text.
getNoTabHangInd()Do Not Create Custom Tab Stop for Hanging Indent.
getOverrideTableStyleFontSizeAndJustification()Specifies how the style hierarchy of the document is evaluated.
getPrintBodyTextBeforeHeader()Print Body Text before Header/Footer Contents.
getPrintColBlack()Print Colors as Black And White without Dithering.
getSelectFldWithFirstOrLastChar()Select Field When First or Last Character Is Selected.
getShapeLayoutLikeWW8()Emulate Word 97 Text Wrapping Around Floating Objects.
getShowBreaksInFrames()Display Page/Column Breaks Present in Frames.
getSpaceForUL()Add Additional Space Below Baseline For Underlined East Asian Text.
getSpacingInWholePoints()Only Expand/Condense Text By Whole Points.
getSplitPgBreakAndParaMark()Always Move Paragraph Mark to Page after a Page Break.
getSubFontBySize()Increase Priority Of Font Size During Font Substitution.
getSuppressBottomSpacing()Ignore Exact Line Height for Last Line on Page.
getSuppressSpBfAfterPgBrk()Do Not Use Space Before On First Line After a Page Break.
getSuppressSpacingAtTopOfPage()Ignore Minimum Line Height for First Line on Page.
getSuppressTopSpacing()Ignore Minimum and Exact Line Height for First Line on Page.
getSuppressTopSpacingWP()Emulate WordPerfect 5.x Line Spacing.
getSwapBordersFacingPgs()Swap Paragraph Borders on Odd Numbered Pages.
getSwapInsideAndOutsideForMirrorIndentsAndRelativePositioning()Specifies to swap inside and outside for mirror indents and relative positioning.
getTransparentMetafiles()Specifies not to blank the area behind metafile pictures.
getTruncateFontHeightsLikeWP6()Emulate WordPerfect 6.x Font Height Calculation.
getUICompat97To2003()True to disable UI functionality which is not compatible with Word97-2003.
getUlTrailSpace()Underline All Trailing Spaces.
getUnderlineTabInNumList()Underline Following Character Following Numbering.
getUseAltKinsokuLineBreakRules()Use Alternate Set of East Asian Line Breaking Rules.
getUseAnsiKerningPairs()Use ANSI Kerning Pairs from Fonts.
getUseFELayout()Do Not Bypass East Asian/Complex Script Layout Code.
getUseNormalStyleForList()Do Not Automatically Apply List Paragraph Style To Bulleted/Numbered Text.
getUsePrinterMetrics()Use Printer Metrics To Display Documents.
getUseSingleBorderforContiguousCells()Use Simplified Rules For Table Border Conflicts.
getUseWord2002TableStyleRules()Emulate Word 2002 Table Style Rules.
getUseWord2010TableStyleRules()Specifies to use Word2010 table style rules.
getUseWord97LineBreakRules()Emulate Word 97 East Asian Line Breaking.
getWPJustification()Emulate WordPerfect 6.x Paragraph Justification.
getWPSpaceWidth()Specifies whether to set the width of a space as is done in WordPerfect 5.x.
getWrapTrailSpaces()Line Wrap Trailing Spaces.
optimizeFor(int version)
setAdjustLineHeightInTable(boolean value)Add Document Grid Line Pitch To Lines in Table Cells.
setAlignTablesRowByRow(boolean value)Align Table Rows Independently.
setAllowSpaceOfSameStyleInTable(boolean value)Allow Contextual Spacing of Paragraphs in Tables.
setApplyBreakingRules(boolean value)Use Legacy Ethiopic and Amharic Line Breaking Rules.
setAutoSpaceLikeWord95(boolean value)Emulate Word 95 Full-Width Character Spacing.
setAutofitToFirstFixedWidthCell(boolean value)Allow Table Columns To Exceed Preferred Widths of Constituent Cells.
setBalanceSingleByteDoubleByteWidth(boolean value)Balance Single Byte and Double Byte Characters.
setCachedColBalance(boolean value)Use Cached Paragraph Information for Column Balancing.
setConvMailMergeEsc(boolean value)Treat Backslash Quotation Delimiter as Two Quotation Marks.
setDisableOpenTypeFontFormattingFeatures(boolean value)Specifies to disable OpenType font formatting features.
setDisplayHangulFixedWidth(boolean value)Always Use Fixed Width for Hangul Characters.
setDoNotAutofitConstrainedTables(boolean value)Do Not AutoFit Tables To Fit Next To Wrapped Objects.
setDoNotBreakConstrainedForcedTable(boolean value)Don’t Break Table Rows Around Floating Tables.
setDoNotBreakWrappedTables(boolean value)Do Not Allow Floating Tables To Break Across Pages.
setDoNotExpandShiftReturn(boolean value)Don’t Justify Lines Ending in Soft Line Break.
setDoNotLeaveBackslashAlone(boolean value)Convert Backslash To Yen Sign When Entered.
setDoNotSnapToGridInCell(boolean value)Do Not Snap to Document Grid in Table Cells with Objects.
setDoNotSuppressIndentation(boolean value)Do Not Ignore Floating Objects When Calculating Paragraph Indentation.
setDoNotSuppressParagraphBorders(boolean value)Do Not Suppress Paragraph Borders Next To Frames.
setDoNotUseEastAsianBreakRules(boolean value)Do Not Compress Compressible Characters When Using Document Grid.
setDoNotUseHTMLParagraphAutoSpacing(boolean value)Use Fixed Paragraph Spacing for HTML Auto Setting.
setDoNotUseIndentAsNumberingTabStop(boolean value)Ignore Hanging Indent When Creating Tab Stop After Numbering.
setDoNotVertAlignCellWithSp(boolean value)Don’t Vertically Align Cells Containing Floating Objects.
setDoNotVertAlignInTxbx(boolean value)Ignore Vertical Alignment in Textboxes.
setDoNotWrapTextWithPunct(boolean value)Do Not Allow Hanging Punctuation With Character Grid.
setFootnoteLayoutLikeWW8(boolean value)Emulate Word 6.x/95/97 Footnote Placement.
setForgetLastTabAlignment(boolean value)Ignore Width of Last Tab Stop When Aligning Paragraph If It Is Not Left Aligned.
setGrowAutofit(boolean value)Allow Tables to AutoFit Into Page Margins.
setLayoutRawTableWidth(boolean value)Ignore Space Before Table When Deciding If Table Should Wrap Floating Object.
setLayoutTableRowsApart(boolean value)Allow Table Rows to Wrap Inline Objects Independently.
setLineWrapLikeWord6(boolean value)Emulate Word 6.0 Line Wrapping for East Asian Text.
setMWSmallCaps(boolean value)Emulate Word 5.x for the Macintosh Small Caps Formatting.
setNoColumnBalance(boolean value)Do Not Balance Text Columns within a Section.
setNoExtraLineSpacing(boolean value)Do Not Center Content on Lines With Exact Line Height.
setNoLeading(boolean value)Do Not Add Leading Between Lines of Text.
setNoSpaceRaiseLower(boolean value)Do Not Increase Line Height for Raised/Lowered Text.
setNoTabHangInd(boolean value)Do Not Create Custom Tab Stop for Hanging Indent.
setOverrideTableStyleFontSizeAndJustification(boolean value)Specifies how the style hierarchy of the document is evaluated.
setPrintBodyTextBeforeHeader(boolean value)Print Body Text before Header/Footer Contents.
setPrintColBlack(boolean value)Print Colors as Black And White without Dithering.
setSelectFldWithFirstOrLastChar(boolean value)Select Field When First or Last Character Is Selected.
setShapeLayoutLikeWW8(boolean value)Emulate Word 97 Text Wrapping Around Floating Objects.
setShowBreaksInFrames(boolean value)Display Page/Column Breaks Present in Frames.
setSpaceForUL(boolean value)Add Additional Space Below Baseline For Underlined East Asian Text.
setSpacingInWholePoints(boolean value)Only Expand/Condense Text By Whole Points.
setSplitPgBreakAndParaMark(boolean value)Always Move Paragraph Mark to Page after a Page Break.
setSubFontBySize(boolean value)Increase Priority Of Font Size During Font Substitution.
setSuppressBottomSpacing(boolean value)Ignore Exact Line Height for Last Line on Page.
setSuppressSpBfAfterPgBrk(boolean value)Do Not Use Space Before On First Line After a Page Break.
setSuppressSpacingAtTopOfPage(boolean value)Ignore Minimum Line Height for First Line on Page.
setSuppressTopSpacing(boolean value)Ignore Minimum and Exact Line Height for First Line on Page.
setSuppressTopSpacingWP(boolean value)Emulate WordPerfect 5.x Line Spacing.
setSwapBordersFacingPgs(boolean value)Swap Paragraph Borders on Odd Numbered Pages.
setSwapInsideAndOutsideForMirrorIndentsAndRelativePositioning(boolean value)Specifies to swap inside and outside for mirror indents and relative positioning.
setTransparentMetafiles(boolean value)Specifies not to blank the area behind metafile pictures.
setTruncateFontHeightsLikeWP6(boolean value)Emulate WordPerfect 6.x Font Height Calculation.
setUICompat97To2003(boolean value)True to disable UI functionality which is not compatible with Word97-2003.
setUlTrailSpace(boolean value)Underline All Trailing Spaces.
setUnderlineTabInNumList(boolean value)Underline Following Character Following Numbering.
setUseAltKinsokuLineBreakRules(boolean value)Use Alternate Set of East Asian Line Breaking Rules.
setUseAnsiKerningPairs(boolean value)Use ANSI Kerning Pairs from Fonts.
setUseFELayout(boolean value)Do Not Bypass East Asian/Complex Script Layout Code.
setUseNormalStyleForList(boolean value)Do Not Automatically Apply List Paragraph Style To Bulleted/Numbered Text.
setUsePrinterMetrics(boolean value)Use Printer Metrics To Display Documents.
setUseSingleBorderforContiguousCells(boolean value)Use Simplified Rules For Table Border Conflicts.
setUseWord2002TableStyleRules(boolean value)Emulate Word 2002 Table Style Rules.
setUseWord2010TableStyleRules(boolean value)Specifies to use Word2010 table style rules.
setUseWord97LineBreakRules(boolean value)Emulate Word 97 East Asian Line Breaking.
setWPJustification(boolean value)Emulate WordPerfect 6.x Paragraph Justification.
setWPSpaceWidth(boolean value)Specifies whether to set the width of a space as is done in WordPerfect 5.x.
setWrapTrailSpaces(boolean value)Line Wrap Trailing Spaces.

getAdjustLineHeightInTable()

public boolean getAdjustLineHeightInTable()

Add Document Grid Line Pitch To Lines in Table Cells.

Returns: boolean - The corresponding boolean value.

getAlignTablesRowByRow()

public boolean getAlignTablesRowByRow()

Align Table Rows Independently.

Returns: boolean - The corresponding boolean value.

getAllowSpaceOfSameStyleInTable()

public boolean getAllowSpaceOfSameStyleInTable()

Allow Contextual Spacing of Paragraphs in Tables.

Returns: boolean - The corresponding boolean value.

getApplyBreakingRules()

public boolean getApplyBreakingRules()

Use Legacy Ethiopic and Amharic Line Breaking Rules.

Returns: boolean - The corresponding boolean value.

getAutoSpaceLikeWord95()

public boolean getAutoSpaceLikeWord95()

Emulate Word 95 Full-Width Character Spacing.

Returns: boolean - The corresponding boolean value.

getAutofitToFirstFixedWidthCell()

public boolean getAutofitToFirstFixedWidthCell()

Allow Table Columns To Exceed Preferred Widths of Constituent Cells.

Remarks:

The option is called “Use Word 2003 table autofit rules” in MS Word 2013 user interface. It actually affects how the grid is calculated for fixed layout tables, too (for some cases).

Returns: boolean - The corresponding boolean value.

getBalanceSingleByteDoubleByteWidth()

public boolean getBalanceSingleByteDoubleByteWidth()

Balance Single Byte and Double Byte Characters.

Returns: boolean - The corresponding boolean value.

getCachedColBalance()

public boolean getCachedColBalance()

Use Cached Paragraph Information for Column Balancing.

Returns: boolean - The corresponding boolean value.

getConvMailMergeEsc()

public boolean getConvMailMergeEsc()

Treat Backslash Quotation Delimiter as Two Quotation Marks.

Returns: boolean - The corresponding boolean value.

getDisableOpenTypeFontFormattingFeatures()

public boolean getDisableOpenTypeFontFormattingFeatures()

Specifies to disable OpenType font formatting features.

Returns: boolean - The corresponding boolean value.

getDisplayHangulFixedWidth()

public boolean getDisplayHangulFixedWidth()

Always Use Fixed Width for Hangul Characters.

Returns: boolean - The corresponding boolean value.

getDoNotAutofitConstrainedTables()

public boolean getDoNotAutofitConstrainedTables()

Do Not AutoFit Tables To Fit Next To Wrapped Objects.

Returns: boolean - The corresponding boolean value.

getDoNotBreakConstrainedForcedTable()

public boolean getDoNotBreakConstrainedForcedTable()

Don’t Break Table Rows Around Floating Tables.

Returns: boolean - The corresponding boolean value.

getDoNotBreakWrappedTables()

public boolean getDoNotBreakWrappedTables()

Do Not Allow Floating Tables To Break Across Pages.

Returns: boolean - The corresponding boolean value.

getDoNotExpandShiftReturn()

public boolean getDoNotExpandShiftReturn()

Don’t Justify Lines Ending in Soft Line Break.

Returns: boolean - The corresponding boolean value.

getDoNotLeaveBackslashAlone()

public boolean getDoNotLeaveBackslashAlone()

Convert Backslash To Yen Sign When Entered.

Returns: boolean - The corresponding boolean value.

getDoNotSnapToGridInCell()

public boolean getDoNotSnapToGridInCell()

Do Not Snap to Document Grid in Table Cells with Objects.

Returns: boolean - The corresponding boolean value.

getDoNotSuppressIndentation()

public boolean getDoNotSuppressIndentation()

Do Not Ignore Floating Objects When Calculating Paragraph Indentation.

Returns: boolean - The corresponding boolean value.

getDoNotSuppressParagraphBorders()

public boolean getDoNotSuppressParagraphBorders()

Do Not Suppress Paragraph Borders Next To Frames.

Returns: boolean - The corresponding boolean value.

getDoNotUseEastAsianBreakRules()

public boolean getDoNotUseEastAsianBreakRules()

Do Not Compress Compressible Characters When Using Document Grid.

Returns: boolean - The corresponding boolean value.

getDoNotUseHTMLParagraphAutoSpacing()

public boolean getDoNotUseHTMLParagraphAutoSpacing()

Use Fixed Paragraph Spacing for HTML Auto Setting.

Returns: boolean - The corresponding boolean value.

getDoNotUseIndentAsNumberingTabStop()

public boolean getDoNotUseIndentAsNumberingTabStop()

Ignore Hanging Indent When Creating Tab Stop After Numbering.

Returns: boolean - The corresponding boolean value.

getDoNotVertAlignCellWithSp()

public boolean getDoNotVertAlignCellWithSp()

Don’t Vertically Align Cells Containing Floating Objects.

Returns: boolean - The corresponding boolean value.

getDoNotVertAlignInTxbx()

public boolean getDoNotVertAlignInTxbx()

Ignore Vertical Alignment in Textboxes.

Returns: boolean - The corresponding boolean value.

getDoNotWrapTextWithPunct()

public boolean getDoNotWrapTextWithPunct()

Do Not Allow Hanging Punctuation With Character Grid.

Returns: boolean - The corresponding boolean value.

getFootnoteLayoutLikeWW8()

public boolean getFootnoteLayoutLikeWW8()

Emulate Word 6.x/95/97 Footnote Placement.

Returns: boolean - The corresponding boolean value.

getForgetLastTabAlignment()

public boolean getForgetLastTabAlignment()

Ignore Width of Last Tab Stop When Aligning Paragraph If It Is Not Left Aligned.

Returns: boolean - The corresponding boolean value.

getGrowAutofit()

public boolean getGrowAutofit()

Allow Tables to AutoFit Into Page Margins.

Returns: boolean - The corresponding boolean value.

getLayoutRawTableWidth()

public boolean getLayoutRawTableWidth()

Ignore Space Before Table When Deciding If Table Should Wrap Floating Object.

Returns: boolean - The corresponding boolean value.

getLayoutTableRowsApart()

public boolean getLayoutTableRowsApart()

Allow Table Rows to Wrap Inline Objects Independently.

Returns: boolean - The corresponding boolean value.

getLineWrapLikeWord6()

public boolean getLineWrapLikeWord6()

Emulate Word 6.0 Line Wrapping for East Asian Text.

Returns: boolean - The corresponding boolean value.

getMWSmallCaps()

public boolean getMWSmallCaps()

Emulate Word 5.x for the Macintosh Small Caps Formatting.

Returns: boolean - The corresponding boolean value.

getNoColumnBalance()

public boolean getNoColumnBalance()

Do Not Balance Text Columns within a Section.

Returns: boolean - The corresponding boolean value.

getNoExtraLineSpacing()

public boolean getNoExtraLineSpacing()

Do Not Center Content on Lines With Exact Line Height.

Returns: boolean - The corresponding boolean value.

getNoLeading()

public boolean getNoLeading()

Do Not Add Leading Between Lines of Text.

Returns: boolean - The corresponding boolean value.

getNoSpaceRaiseLower()

public boolean getNoSpaceRaiseLower()

Do Not Increase Line Height for Raised/Lowered Text.

Returns: boolean - The corresponding boolean value.

getNoTabHangInd()

public boolean getNoTabHangInd()

Do Not Create Custom Tab Stop for Hanging Indent.

Returns: boolean - The corresponding boolean value.

getOverrideTableStyleFontSizeAndJustification()

public boolean getOverrideTableStyleFontSizeAndJustification()

Specifies how the style hierarchy of the document is evaluated.

Returns: boolean - The corresponding boolean value.

getPrintBodyTextBeforeHeader()

public boolean getPrintBodyTextBeforeHeader()

Print Body Text before Header/Footer Contents.

Returns: boolean - The corresponding boolean value.

getPrintColBlack()

public boolean getPrintColBlack()

Print Colors as Black And White without Dithering.

Returns: boolean - The corresponding boolean value.

getSelectFldWithFirstOrLastChar()

public boolean getSelectFldWithFirstOrLastChar()

Select Field When First or Last Character Is Selected.

Returns: boolean - The corresponding boolean value.

getShapeLayoutLikeWW8()

public boolean getShapeLayoutLikeWW8()

Emulate Word 97 Text Wrapping Around Floating Objects.

Returns: boolean - The corresponding boolean value.

getShowBreaksInFrames()

public boolean getShowBreaksInFrames()

Display Page/Column Breaks Present in Frames.

Returns: boolean - The corresponding boolean value.

getSpaceForUL()

public boolean getSpaceForUL()

Add Additional Space Below Baseline For Underlined East Asian Text.

Returns: boolean - The corresponding boolean value.

getSpacingInWholePoints()

public boolean getSpacingInWholePoints()

Only Expand/Condense Text By Whole Points.

Returns: boolean - The corresponding boolean value.

getSplitPgBreakAndParaMark()

public boolean getSplitPgBreakAndParaMark()

Always Move Paragraph Mark to Page after a Page Break.

Returns: boolean - The corresponding boolean value.

getSubFontBySize()

public boolean getSubFontBySize()

Increase Priority Of Font Size During Font Substitution.

Returns: boolean - The corresponding boolean value.

getSuppressBottomSpacing()

public boolean getSuppressBottomSpacing()

Ignore Exact Line Height for Last Line on Page.

Returns: boolean - The corresponding boolean value.

getSuppressSpBfAfterPgBrk()

public boolean getSuppressSpBfAfterPgBrk()

Do Not Use Space Before On First Line After a Page Break.

Returns: boolean - The corresponding boolean value.

getSuppressSpacingAtTopOfPage()

public boolean getSuppressSpacingAtTopOfPage()

Ignore Minimum Line Height for First Line on Page.

Returns: boolean - The corresponding boolean value.

getSuppressTopSpacing()

public boolean getSuppressTopSpacing()

Ignore Minimum and Exact Line Height for First Line on Page.

Returns: boolean - The corresponding boolean value.

getSuppressTopSpacingWP()

public boolean getSuppressTopSpacingWP()

Emulate WordPerfect 5.x Line Spacing.

Returns: boolean - The corresponding boolean value.

getSwapBordersFacingPgs()

public boolean getSwapBordersFacingPgs()

Swap Paragraph Borders on Odd Numbered Pages.

Returns: boolean - The corresponding boolean value.

getSwapInsideAndOutsideForMirrorIndentsAndRelativePositioning()

public boolean getSwapInsideAndOutsideForMirrorIndentsAndRelativePositioning()

Specifies to swap inside and outside for mirror indents and relative positioning.

Returns: boolean - The corresponding boolean value.

getTransparentMetafiles()

public boolean getTransparentMetafiles()

Specifies not to blank the area behind metafile pictures.

Returns: boolean - The corresponding boolean value.

getTruncateFontHeightsLikeWP6()

public boolean getTruncateFontHeightsLikeWP6()

Emulate WordPerfect 6.x Font Height Calculation.

Returns: boolean - The corresponding boolean value.

getUICompat97To2003()

public boolean getUICompat97To2003()

True to disable UI functionality which is not compatible with Word97-2003. Default value is false .

Remarks:

Controls the Word97-2003 compatibility setting that disables UI functionality which is not compatible with Word97-2003. When true , ‘w:uiCompat97To2003’ XML element is written to ‘\word\settings.xml’ document package part. Default value is false . When set to false , this element is not written. Technically this property is not part of compatibility options, but we have put it here for API convenience.

Returns: boolean - The corresponding boolean value.

getUlTrailSpace()

public boolean getUlTrailSpace()

Underline All Trailing Spaces.

Returns: boolean - The corresponding boolean value.

getUnderlineTabInNumList()

public boolean getUnderlineTabInNumList()

Underline Following Character Following Numbering.

Returns: boolean - The corresponding boolean value.

getUseAltKinsokuLineBreakRules()

public boolean getUseAltKinsokuLineBreakRules()

Use Alternate Set of East Asian Line Breaking Rules.

Returns: boolean - The corresponding boolean value.

getUseAnsiKerningPairs()

public boolean getUseAnsiKerningPairs()

Use ANSI Kerning Pairs from Fonts.

Returns: boolean - The corresponding boolean value.

getUseFELayout()

public boolean getUseFELayout()

Do Not Bypass East Asian/Complex Script Layout Code.

Returns: boolean - The corresponding boolean value.

getUseNormalStyleForList()

public boolean getUseNormalStyleForList()

Do Not Automatically Apply List Paragraph Style To Bulleted/Numbered Text.

Returns: boolean - The corresponding boolean value.

getUsePrinterMetrics()

public boolean getUsePrinterMetrics()

Use Printer Metrics To Display Documents.

Remarks:

Printer Metrics may differ depending on drivers used. For instance, Windows “Microsoft OpenXPS Class Driver 2” and “Microsoft Print to PDF” provide slightly different metrics. Therefore, the final document’s layout may change if this option is enabled.

Returns: boolean - The corresponding boolean value.

getUseSingleBorderforContiguousCells()

public boolean getUseSingleBorderforContiguousCells()

Use Simplified Rules For Table Border Conflicts.

Returns: boolean - The corresponding boolean value.

getUseWord2002TableStyleRules()

public boolean getUseWord2002TableStyleRules()

Emulate Word 2002 Table Style Rules.

Returns: boolean - The corresponding boolean value.

getUseWord2010TableStyleRules()

public boolean getUseWord2010TableStyleRules()

Specifies to use Word2010 table style rules.

Returns: boolean - The corresponding boolean value.

getUseWord97LineBreakRules()

public boolean getUseWord97LineBreakRules()

Emulate Word 97 East Asian Line Breaking.

Returns: boolean - The corresponding boolean value.

getWPJustification()

public boolean getWPJustification()

Emulate WordPerfect 6.x Paragraph Justification.

Returns: boolean - The corresponding boolean value.

getWPSpaceWidth()

public boolean getWPSpaceWidth()

Specifies whether to set the width of a space as is done in WordPerfect 5.x.

Returns: boolean - The corresponding boolean value.

getWrapTrailSpaces()

public boolean getWrapTrailSpaces()

Line Wrap Trailing Spaces.

Returns: boolean - The corresponding boolean value.

optimizeFor(int version)

public void optimizeFor(int version)

Parameters:

ParameterTypeDescription
versionint

setAdjustLineHeightInTable(boolean value)

public void setAdjustLineHeightInTable(boolean value)

Add Document Grid Line Pitch To Lines in Table Cells.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setAlignTablesRowByRow(boolean value)

public void setAlignTablesRowByRow(boolean value)

Align Table Rows Independently.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setAllowSpaceOfSameStyleInTable(boolean value)

public void setAllowSpaceOfSameStyleInTable(boolean value)

Allow Contextual Spacing of Paragraphs in Tables.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setApplyBreakingRules(boolean value)

public void setApplyBreakingRules(boolean value)

Use Legacy Ethiopic and Amharic Line Breaking Rules.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setAutoSpaceLikeWord95(boolean value)

public void setAutoSpaceLikeWord95(boolean value)

Emulate Word 95 Full-Width Character Spacing.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setAutofitToFirstFixedWidthCell(boolean value)

public void setAutofitToFirstFixedWidthCell(boolean value)

Allow Table Columns To Exceed Preferred Widths of Constituent Cells.

Remarks:

The option is called “Use Word 2003 table autofit rules” in MS Word 2013 user interface. It actually affects how the grid is calculated for fixed layout tables, too (for some cases).

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setBalanceSingleByteDoubleByteWidth(boolean value)

public void setBalanceSingleByteDoubleByteWidth(boolean value)

Balance Single Byte and Double Byte Characters.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setCachedColBalance(boolean value)

public void setCachedColBalance(boolean value)

Use Cached Paragraph Information for Column Balancing.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setConvMailMergeEsc(boolean value)

public void setConvMailMergeEsc(boolean value)

Treat Backslash Quotation Delimiter as Two Quotation Marks.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setDisableOpenTypeFontFormattingFeatures(boolean value)

public void setDisableOpenTypeFontFormattingFeatures(boolean value)

Specifies to disable OpenType font formatting features.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setDisplayHangulFixedWidth(boolean value)

public void setDisplayHangulFixedWidth(boolean value)

Always Use Fixed Width for Hangul Characters.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setDoNotAutofitConstrainedTables(boolean value)

public void setDoNotAutofitConstrainedTables(boolean value)

Do Not AutoFit Tables To Fit Next To Wrapped Objects.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setDoNotBreakConstrainedForcedTable(boolean value)

public void setDoNotBreakConstrainedForcedTable(boolean value)

Don’t Break Table Rows Around Floating Tables.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setDoNotBreakWrappedTables(boolean value)

public void setDoNotBreakWrappedTables(boolean value)

Do Not Allow Floating Tables To Break Across Pages.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setDoNotExpandShiftReturn(boolean value)

public void setDoNotExpandShiftReturn(boolean value)

Don’t Justify Lines Ending in Soft Line Break.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setDoNotLeaveBackslashAlone(boolean value)

public void setDoNotLeaveBackslashAlone(boolean value)

Convert Backslash To Yen Sign When Entered.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setDoNotSnapToGridInCell(boolean value)

public void setDoNotSnapToGridInCell(boolean value)

Do Not Snap to Document Grid in Table Cells with Objects.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setDoNotSuppressIndentation(boolean value)

public void setDoNotSuppressIndentation(boolean value)

Do Not Ignore Floating Objects When Calculating Paragraph Indentation.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setDoNotSuppressParagraphBorders(boolean value)

public void setDoNotSuppressParagraphBorders(boolean value)

Do Not Suppress Paragraph Borders Next To Frames.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setDoNotUseEastAsianBreakRules(boolean value)

public void setDoNotUseEastAsianBreakRules(boolean value)

Do Not Compress Compressible Characters When Using Document Grid.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setDoNotUseHTMLParagraphAutoSpacing(boolean value)

public void setDoNotUseHTMLParagraphAutoSpacing(boolean value)

Use Fixed Paragraph Spacing for HTML Auto Setting.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setDoNotUseIndentAsNumberingTabStop(boolean value)

public void setDoNotUseIndentAsNumberingTabStop(boolean value)

Ignore Hanging Indent When Creating Tab Stop After Numbering.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setDoNotVertAlignCellWithSp(boolean value)

public void setDoNotVertAlignCellWithSp(boolean value)

Don’t Vertically Align Cells Containing Floating Objects.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setDoNotVertAlignInTxbx(boolean value)

public void setDoNotVertAlignInTxbx(boolean value)

Ignore Vertical Alignment in Textboxes.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setDoNotWrapTextWithPunct(boolean value)

public void setDoNotWrapTextWithPunct(boolean value)

Do Not Allow Hanging Punctuation With Character Grid.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setFootnoteLayoutLikeWW8(boolean value)

public void setFootnoteLayoutLikeWW8(boolean value)

Emulate Word 6.x/95/97 Footnote Placement.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setForgetLastTabAlignment(boolean value)

public void setForgetLastTabAlignment(boolean value)

Ignore Width of Last Tab Stop When Aligning Paragraph If It Is Not Left Aligned.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setGrowAutofit(boolean value)

public void setGrowAutofit(boolean value)

Allow Tables to AutoFit Into Page Margins.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setLayoutRawTableWidth(boolean value)

public void setLayoutRawTableWidth(boolean value)

Ignore Space Before Table When Deciding If Table Should Wrap Floating Object.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setLayoutTableRowsApart(boolean value)

public void setLayoutTableRowsApart(boolean value)

Allow Table Rows to Wrap Inline Objects Independently.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setLineWrapLikeWord6(boolean value)

public void setLineWrapLikeWord6(boolean value)

Emulate Word 6.0 Line Wrapping for East Asian Text.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setMWSmallCaps(boolean value)

public void setMWSmallCaps(boolean value)

Emulate Word 5.x for the Macintosh Small Caps Formatting.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setNoColumnBalance(boolean value)

public void setNoColumnBalance(boolean value)

Do Not Balance Text Columns within a Section.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setNoExtraLineSpacing(boolean value)

public void setNoExtraLineSpacing(boolean value)

Do Not Center Content on Lines With Exact Line Height.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setNoLeading(boolean value)

public void setNoLeading(boolean value)

Do Not Add Leading Between Lines of Text.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setNoSpaceRaiseLower(boolean value)

public void setNoSpaceRaiseLower(boolean value)

Do Not Increase Line Height for Raised/Lowered Text.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setNoTabHangInd(boolean value)

public void setNoTabHangInd(boolean value)

Do Not Create Custom Tab Stop for Hanging Indent.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setOverrideTableStyleFontSizeAndJustification(boolean value)

public void setOverrideTableStyleFontSizeAndJustification(boolean value)

Specifies how the style hierarchy of the document is evaluated.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setPrintBodyTextBeforeHeader(boolean value)

public void setPrintBodyTextBeforeHeader(boolean value)

Print Body Text before Header/Footer Contents.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setPrintColBlack(boolean value)

public void setPrintColBlack(boolean value)

Print Colors as Black And White without Dithering.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setSelectFldWithFirstOrLastChar(boolean value)

public void setSelectFldWithFirstOrLastChar(boolean value)

Select Field When First or Last Character Is Selected.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setShapeLayoutLikeWW8(boolean value)

public void setShapeLayoutLikeWW8(boolean value)

Emulate Word 97 Text Wrapping Around Floating Objects.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setShowBreaksInFrames(boolean value)

public void setShowBreaksInFrames(boolean value)

Display Page/Column Breaks Present in Frames.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setSpaceForUL(boolean value)

public void setSpaceForUL(boolean value)

Add Additional Space Below Baseline For Underlined East Asian Text.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setSpacingInWholePoints(boolean value)

public void setSpacingInWholePoints(boolean value)

Only Expand/Condense Text By Whole Points.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setSplitPgBreakAndParaMark(boolean value)

public void setSplitPgBreakAndParaMark(boolean value)

Always Move Paragraph Mark to Page after a Page Break.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setSubFontBySize(boolean value)

public void setSubFontBySize(boolean value)

Increase Priority Of Font Size During Font Substitution.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setSuppressBottomSpacing(boolean value)

public void setSuppressBottomSpacing(boolean value)

Ignore Exact Line Height for Last Line on Page.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setSuppressSpBfAfterPgBrk(boolean value)

public void setSuppressSpBfAfterPgBrk(boolean value)

Do Not Use Space Before On First Line After a Page Break.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setSuppressSpacingAtTopOfPage(boolean value)

public void setSuppressSpacingAtTopOfPage(boolean value)

Ignore Minimum Line Height for First Line on Page.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setSuppressTopSpacing(boolean value)

public void setSuppressTopSpacing(boolean value)

Ignore Minimum and Exact Line Height for First Line on Page.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setSuppressTopSpacingWP(boolean value)

public void setSuppressTopSpacingWP(boolean value)

Emulate WordPerfect 5.x Line Spacing.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setSwapBordersFacingPgs(boolean value)

public void setSwapBordersFacingPgs(boolean value)

Swap Paragraph Borders on Odd Numbered Pages.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setSwapInsideAndOutsideForMirrorIndentsAndRelativePositioning(boolean value)

public void setSwapInsideAndOutsideForMirrorIndentsAndRelativePositioning(boolean value)

Specifies to swap inside and outside for mirror indents and relative positioning.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setTransparentMetafiles(boolean value)

public void setTransparentMetafiles(boolean value)

Specifies not to blank the area behind metafile pictures.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setTruncateFontHeightsLikeWP6(boolean value)

public void setTruncateFontHeightsLikeWP6(boolean value)

Emulate WordPerfect 6.x Font Height Calculation.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setUICompat97To2003(boolean value)

public void setUICompat97To2003(boolean value)

True to disable UI functionality which is not compatible with Word97-2003. Default value is false .

Remarks:

Controls the Word97-2003 compatibility setting that disables UI functionality which is not compatible with Word97-2003. When true , ‘w:uiCompat97To2003’ XML element is written to ‘\word\settings.xml’ document package part. Default value is false . When set to false , this element is not written. Technically this property is not part of compatibility options, but we have put it here for API convenience.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setUlTrailSpace(boolean value)

public void setUlTrailSpace(boolean value)

Underline All Trailing Spaces.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setUnderlineTabInNumList(boolean value)

public void setUnderlineTabInNumList(boolean value)

Underline Following Character Following Numbering.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setUseAltKinsokuLineBreakRules(boolean value)

public void setUseAltKinsokuLineBreakRules(boolean value)

Use Alternate Set of East Asian Line Breaking Rules.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setUseAnsiKerningPairs(boolean value)

public void setUseAnsiKerningPairs(boolean value)

Use ANSI Kerning Pairs from Fonts.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setUseFELayout(boolean value)

public void setUseFELayout(boolean value)

Do Not Bypass East Asian/Complex Script Layout Code.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setUseNormalStyleForList(boolean value)

public void setUseNormalStyleForList(boolean value)

Do Not Automatically Apply List Paragraph Style To Bulleted/Numbered Text.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setUsePrinterMetrics(boolean value)

public void setUsePrinterMetrics(boolean value)

Use Printer Metrics To Display Documents.

Remarks:

Printer Metrics may differ depending on drivers used. For instance, Windows “Microsoft OpenXPS Class Driver 2” and “Microsoft Print to PDF” provide slightly different metrics. Therefore, the final document’s layout may change if this option is enabled.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setUseSingleBorderforContiguousCells(boolean value)

public void setUseSingleBorderforContiguousCells(boolean value)

Use Simplified Rules For Table Border Conflicts.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setUseWord2002TableStyleRules(boolean value)

public void setUseWord2002TableStyleRules(boolean value)

Emulate Word 2002 Table Style Rules.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setUseWord2010TableStyleRules(boolean value)

public void setUseWord2010TableStyleRules(boolean value)

Specifies to use Word2010 table style rules.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setUseWord97LineBreakRules(boolean value)

public void setUseWord97LineBreakRules(boolean value)

Emulate Word 97 East Asian Line Breaking.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setWPJustification(boolean value)

public void setWPJustification(boolean value)

Emulate WordPerfect 6.x Paragraph Justification.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setWPSpaceWidth(boolean value)

public void setWPSpaceWidth(boolean value)

Specifies whether to set the width of a space as is done in WordPerfect 5.x.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.

setWrapTrailSpaces(boolean value)

public void setWrapTrailSpaces(boolean value)

Line Wrap Trailing Spaces.

Parameters:

ParameterTypeDescription
valuebooleanThe corresponding boolean value.