public class LayoutOptions
extends java.lang.Object
implements java.lang.Cloneable
To learn more, visit the Converting to Fixed-page Format documentation article.
You do not create instances of this class directly. Use the Document.getLayoutOptions() property to access layout options for this document.
Note that after changing any of the options present in this class, Document.updatePageLayout() method should be called in order for the changed options to be applied to the layout.
| Modifier and Type | Method and Description |
|---|---|
IPageLayoutCallback |
getCallback()
Gets
IPageLayoutCallback implementation used by page layout model. |
int |
getCommentDisplayMode()
Gets the way comments are rendered.
|
int |
getContinuousSectionPageNumberingRestart()
Gets the mode of behavior for computing page numbers when a continuous section restarts the page numbering.
|
boolean |
getIgnorePrinterMetrics()
Gets indication of whether the "Use printer metrics to lay out document" compatibility option is ignored.
|
RevisionOptions |
getRevisionOptions()
Gets revision options.
|
boolean |
getShowHiddenText()
Gets indication of whether hidden text in the document is rendered.
|
boolean |
getShowParagraphMarks()
Gets indication of whether paragraph marks are rendered.
|
ITextShaperFactory |
getTextShaperFactory()
Gets
ITextShaperFactory implementation used for Advanced Typography rendering features. |
protected java.lang.Object |
memberwiseClone() |
void |
setCallback(IPageLayoutCallback value)
Sets
IPageLayoutCallback implementation used by page layout model. |
void |
setCommentDisplayMode(int value)
Sets the way comments are rendered.
|
void |
setContinuousSectionPageNumberingRestart(int value)
Sets the mode of behavior for computing page numbers when a continuous section restarts the page numbering.
|
void |
setIgnorePrinterMetrics(boolean value)
Sets indication of whether the "Use printer metrics to lay out document" compatibility option is ignored.
|
void |
setShowHiddenText(boolean value)
Sets indication of whether hidden text in the document is rendered.
|
void |
setShowParagraphMarks(boolean value)
Sets indication of whether paragraph marks are rendered.
|
void |
setTextShaperFactory(ITextShaperFactory value)
Sets
ITextShaperFactory implementation used for Advanced Typography rendering features. |
public RevisionOptions getRevisionOptions()
public boolean getShowHiddenText()
public void setShowHiddenText(boolean value)
value - Indication of whether hidden text in the document is rendered.public boolean getShowParagraphMarks()
public void setShowParagraphMarks(boolean value)
value - Indication of whether paragraph marks are rendered.public int getCommentDisplayMode()
CommentDisplayMode.SHOW_IN_BALLOONS.
Note that revisions are not rendered in balloons for CommentDisplayMode.SHOW_IN_ANNOTATIONS.CommentDisplayMode constants.public void setCommentDisplayMode(int value)
CommentDisplayMode.SHOW_IN_BALLOONS.
Note that revisions are not rendered in balloons for CommentDisplayMode.SHOW_IN_ANNOTATIONS.value - The way comments are rendered. The value must be one of CommentDisplayMode constants.public ITextShaperFactory getTextShaperFactory()
ITextShaperFactory implementation used for Advanced Typography rendering features.ITextShaperFactory implementation used for Advanced Typography rendering features.public void setTextShaperFactory(ITextShaperFactory value)
ITextShaperFactory implementation used for Advanced Typography rendering features.value - ITextShaperFactory implementation used for Advanced Typography rendering features.public IPageLayoutCallback getCallback()
IPageLayoutCallback implementation used by page layout model.IPageLayoutCallback implementation used by page layout model.public void setCallback(IPageLayoutCallback value)
IPageLayoutCallback implementation used by page layout model.value - IPageLayoutCallback implementation used by page layout model.public boolean getIgnorePrinterMetrics()
public void setIgnorePrinterMetrics(boolean value)
value - Indication of whether the "Use printer metrics to lay out document" compatibility option is ignored.public int getContinuousSectionPageNumberingRestart()
ContinuousSectionRestart.ALWAYS. It matches the behavior of MS Word 2019 which was the latest version at the moment the option was introduced. Older page numbering logic demonstrated by MS Word 2016 is available via this option. Please ContinuousSectionRestart for the behavior description.ContinuousSectionRestart constants.public void setContinuousSectionPageNumberingRestart(int value)
ContinuousSectionRestart.ALWAYS. It matches the behavior of MS Word 2019 which was the latest version at the moment the option was introduced. Older page numbering logic demonstrated by MS Word 2016 is available via this option. Please ContinuousSectionRestart for the behavior description.value - The mode of behavior for computing page numbers when a continuous section restarts the page numbering. The value must be one of ContinuousSectionRestart constants.protected java.lang.Object memberwiseClone()