Default font for Words document. The following font will be used if a font is missing.
Returns:
java.lang.String
setDefaultFont(String value)
public final void setDefaultFont(String value)
Default font for Words document. The following font will be used if a font is missing.
Parameters:
Parameter
Type
Description
value
java.lang.String
getAutoFontSubstitution()
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.
Returns:
boolean
setAutoFontSubstitution(boolean value)
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.
Parameters:
Parameter
Type
Description
value
boolean
getFontSubstitutes()
public final List<FontSubstitute> getFontSubstitutes()
Substitute specific fonts when converting Words document.
Specifies whether to preserve Microsoft Word form fields as form fields in PDF or convert them to text. Default is false.
Returns:
boolean - preserveFontFields flag
setPreserveFontFields(boolean preserveFontFields)
public void setPreserveFontFields(boolean preserveFontFields)
Sets preserveFontFields flag
Parameters:
Parameter
Type
Description
preserveFontFields
boolean
preserve Microsoft Word form fields as form fields in PDF or convert them to text
isUseTextShaper()
public boolean isUseTextShaper()
Specifies whether to use a text shaper for better kerning display. Default is false.
Returns:
boolean
setUseTextShaper(boolean isUseTextShaper)
public void setUseTextShaper(boolean isUseTextShaper)
Specifies whether to use a text shaper for better kerning display. Default is false.
Parameters:
Parameter
Type
Description
isUseTextShaper
boolean
isUseTextShaper flag
isPreserveDocumentStructure()
public boolean isPreserveDocumentStructure()
Determines whether the document structure should be preserved when converting to PDF (default is false). Note that exporting the document structure significantly increases the memory consumption, especially for the large documents.