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
|
String |
getDefaultFont()
Default font for Words document.
|
protected List<Object> |
getEqualityComponents()
Gets equality components.
|
List<FontSubstitute> |
getFontSubstitutes()
Substitute specific fonts when converting Words document.
|
WordProcessingFileType |
getFormat()
Input document file type
|
boolean |
getHideComments()
Hide comments.
|
boolean |
getHideWordTrackedChanges()
Hide markup and track changes for Word documents.
|
String |
getPassword()
Set password to unprotect protected document.
|
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 |
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 |
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 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 WordProcessingBookmarksOptions getBookmarkOptions()
Bookmarks options
public final String getDefaultFont()
Default font for Words document. The following font will be used if a font is missing.
protected List<Object> getEqualityComponents()
ValueObjectGets equality components.
getEqualityComponents in class ValueObjectpublic final List<FontSubstitute> getFontSubstitutes()
Substitute specific fonts when converting Words document.
public final WordProcessingFileType getFormat()
LoadOptionsInput document file type
getFormat in class LoadOptionspublic final boolean getHideComments()
Hide comments.
public final boolean getHideWordTrackedChanges()
Hide markup and track changes for Word documents.
public final String getPassword()
Set password to unprotect protected document.
public boolean getSkipExternalResources()
getSkipExternalResources in interface com.groupdocs.conversion.options.load.IResourceLoadingOptionspublic List<String> getWhitelistedResources()
getWhitelistedResources in interface com.groupdocs.conversion.options.load.IResourceLoadingOptionspublic boolean isEmbedTrueTypeFonts()
public boolean isKeepDateFieldOriginalValue()
public boolean isPreserveDocumentStructure()
public boolean isPreserveFontFields()
public boolean isUpdateFields()
public boolean isUpdatePageLayout()
public boolean isUseTextShaper()
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 void setBookmarkOptions(WordProcessingBookmarksOptions value)
Bookmarks options
public final void setDefaultFont(String value)
Default font for Words document. The following font will be used if a font is missing.
public void setEmbedTrueTypeFonts(boolean embedTrueTypeFonts)
public final void setFontSubstitutes(List<FontSubstitute> value)
Substitute specific fonts when converting Words document.
public final void setHideComments(boolean value)
Hide comments.
public final void setHideWordTrackedChanges(boolean value)
Hide markup and track changes for Word documents.
public void setKeepDateFieldOriginalValue(boolean keepDateFieldOriginalValue)
public final void setPassword(String value)
Set password to unprotect protected document.
public void setPreserveDocumentStructure(boolean preserveDocumentStructure)
public void setPreserveFontFields(boolean preserveFontFields)
preserveFontFields - preserve Microsoft Word form fields as form fields in PDF or convert them to textpublic void setSkipExternalResources(boolean skip)
setSkipExternalResources in interface com.groupdocs.conversion.options.load.IResourceLoadingOptionspublic void setUpdateFields(boolean updateFields)
public void setUpdatePageLayout(boolean updatePageLayout)
public void setUseTextShaper(boolean isUseTextShaper)
isUseTextShaper - isUseTextShaper flagCopyright © 2024. All rights reserved.