public class WordProcessingLoadOptions extends LoadOptions implements Serializable, com.groupdocs.conversion.options.load.IResourceLoadingOptions
Options for loading WordProcessing documents.
| Constructor and Description |
|---|
WordProcessingLoadOptions()
Initializes new instance of
WordProcessingLoadOptions class. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getAutoFontSubstitution()
If AutoFontSubstitution is disabled, GroupDocs.Conversion uses the DefaultFont for the substitution of missing fonts.
|
WordProcessingBookmarksOptions |
getBookmarkOptions()
Bookmarks options
|
com.groupdocs.conversion.options.load.WordProcessingCommentDisplay |
getCommentDisplayMode()
Specifies how comments should be displayed in the output document.
|
String |
getDefaultFont()
Default font for Words document.
|
List<FontSubstitute> |
getFontSubstitutes()
Substitute specific fonts when converting Words document.
|
WordProcessingFileType |
getFormat()
Input document file type
|
boolean |
getHideComments()
Deprecated.
|
boolean |
getHideWordTrackedChanges()
Hide markup and track changes for Word documents.
|
String |
getPassword()
Set password to unprotect protected document.
|
boolean |
getShowFullCommenterName()
Show full commenter name in comments.
|
boolean |
getSkipExternalResources()
If true all external resource will not be loading with exception of the resources in the
|
List<String> |
getWhitelistedResources()
External resources that will be always loaded
|
boolean |
isEmbedTrueTypeFonts()
If EmbedTrueTypeFonts is true, GroupDocs.Conversion embed true type fonts in the output document.
|
boolean |
isKeepDateFieldOriginalValue()
Keep original value of date field.
|
boolean |
isPreserveDocumentStructure()
Determines whether the document structure should be preserved when converting to PDF (default is false).
|
boolean |
isPreserveFontFields()
Specifies whether to preserve Microsoft Word form fields as form fields in PDF or convert them to text.
|
boolean |
isUpdateFields()
Update fields after loading.
|
boolean |
isUpdatePageLayout()
Update page layout after loading.
|
boolean |
isUseTextShaper()
Specifies whether to use a text shaper for better kerning display.
|
void |
setAutoFontSubstitution(boolean value)
If AutoFontSubstitution is disabled, GroupDocs.Conversion uses the DefaultFont for the substitution of missing fonts.
|
void |
setBookmarkOptions(WordProcessingBookmarksOptions value)
Bookmarks options
|
void |
setCommentDisplayMode(com.groupdocs.conversion.options.load.WordProcessingCommentDisplay commentDisplayMode) |
void |
setDefaultFont(String value)
Default font for Words document.
|
void |
setEmbedTrueTypeFonts(boolean embedTrueTypeFonts) |
void |
setFontSubstitutes(List<FontSubstitute> value)
Substitute specific fonts when converting Words document.
|
void |
setHideComments(boolean value)
Hide comments.
|
void |
setHideWordTrackedChanges(boolean value)
Hide markup and track changes for Word documents.
|
void |
setKeepDateFieldOriginalValue(boolean keepDateFieldOriginalValue)
Sets Keep original value of date field.
|
void |
setPassword(String value)
Set password to unprotect protected document.
|
void |
setPreserveDocumentStructure(boolean preserveDocumentStructure) |
void |
setPreserveFontFields(boolean preserveFontFields)
Sets preserveFontFields flag
|
void |
setShowFullCommenterName(boolean showFullCommenterName) |
void |
setSkipExternalResources(boolean skip) |
void |
setUpdateFields(boolean updateFields) |
void |
setUpdatePageLayout(boolean updatePageLayout) |
void |
setUseTextShaper(boolean isUseTextShaper)
Specifies whether to use a text shaper for better kerning display.
|
void |
setWhitelistedResources(List<String> whiteList) |
setFormatequals, equals, hashCode, op_Equality, op_Inequalitypublic WordProcessingLoadOptions()
Initializes new instance of WordProcessingLoadOptions class.
public final WordProcessingFileType getFormat()
LoadOptionsInput document file type
getFormat in class LoadOptionspublic final String getDefaultFont()
Default font for Words document. The following font will be used if a font is missing.
public final void setDefaultFont(String value)
Default font for Words document. The following font will be used if a font is missing.
public final boolean getAutoFontSubstitution()
If AutoFontSubstitution is disabled, GroupDocs.Conversion uses the DefaultFont for the substitution of missing fonts. If AutoFontSubstitution is enabled, GroupDocs.Conversion evaluates all the related fields in FontInfo (Panose, Sig etc) for the missing font and finds the closest match among the available font sources. Note that font substitution mechanism will override the DefaultFont in cases when FontInfo for the missing font is available in the document. The default value is True.
public final void setAutoFontSubstitution(boolean value)
If AutoFontSubstitution is disabled, GroupDocs.Conversion uses the DefaultFont for the substitution of missing fonts. If AutoFontSubstitution is enabled, GroupDocs.Conversion evaluates all the related fields in FontInfo (Panose, Sig etc) for the missing font and finds the closest match among the available font sources. Note that font substitution mechanism will override the DefaultFont in cases when FontInfo for the missing font is available in the document. The default value is True.
public final List<FontSubstitute> getFontSubstitutes()
Substitute specific fonts when converting Words document.
public boolean isEmbedTrueTypeFonts()
public void setEmbedTrueTypeFonts(boolean embedTrueTypeFonts)
public boolean isUpdatePageLayout()
public void setUpdatePageLayout(boolean updatePageLayout)
public boolean isUpdateFields()
public void setUpdateFields(boolean updateFields)
public boolean isKeepDateFieldOriginalValue()
public void setKeepDateFieldOriginalValue(boolean keepDateFieldOriginalValue)
public final void setFontSubstitutes(List<FontSubstitute> value)
Substitute specific fonts when converting Words document.
public final String getPassword()
Set password to unprotect protected document.
public final void setPassword(String value)
Set password to unprotect protected document.
public final boolean getHideWordTrackedChanges()
Hide markup and track changes for Word documents.
public final void setHideWordTrackedChanges(boolean value)
Hide markup and track changes for Word documents.
@Deprecated public final boolean getHideComments()
Hide comments.
The property is obsolete and will be removed in version 25.5 Use CommentDisplay instead.public final void setHideComments(boolean value)
Hide comments.
public final WordProcessingBookmarksOptions getBookmarkOptions()
Bookmarks options
public final void setBookmarkOptions(WordProcessingBookmarksOptions value)
Bookmarks options
public boolean isPreserveFontFields()
public void setPreserveFontFields(boolean preserveFontFields)
preserveFontFields - preserve Microsoft Word form fields as form fields in PDF or convert them to textpublic boolean isUseTextShaper()
public void setUseTextShaper(boolean isUseTextShaper)
isUseTextShaper - isUseTextShaper flagpublic boolean isPreserveDocumentStructure()
public void setPreserveDocumentStructure(boolean preserveDocumentStructure)
public boolean getSkipExternalResources()
getSkipExternalResources in interface com.groupdocs.conversion.options.load.IResourceLoadingOptionspublic void setSkipExternalResources(boolean skip)
setSkipExternalResources in interface com.groupdocs.conversion.options.load.IResourceLoadingOptionspublic List<String> getWhitelistedResources()
getWhitelistedResources in interface com.groupdocs.conversion.options.load.IResourceLoadingOptionspublic void setWhitelistedResources(List<String> whiteList)
setWhitelistedResources in interface com.groupdocs.conversion.options.load.IResourceLoadingOptionspublic com.groupdocs.conversion.options.load.WordProcessingCommentDisplay getCommentDisplayMode()
public void setCommentDisplayMode(com.groupdocs.conversion.options.load.WordProcessingCommentDisplay commentDisplayMode)
public boolean getShowFullCommenterName()
public void setShowFullCommenterName(boolean showFullCommenterName)
Copyright © 2025. All rights reserved.