public class WordProcessingLoadOptions extends LoadOptions implements Serializable, IResourceLoadingOptions, IPageNumberingLoadOptions, IDocumentsContainerLoadOptions
Gets InterruptThreadIfImageExceptionThrown flag Default: false If true then interrupt the main conversion thread if an exception in a image processing thread occurred
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.
public boolean isInterruptThreadIfImageExceptionThrown()
Gets InterruptThreadIfImageExceptionThrown flag Default: false If true then interrupt the main conversion thread if an exception in a image processing thread occurred
public void setInterruptThreadIfImageExceptionThrown(boolean interruptThreadIfImageExceptionThrown)
Sets InterruptThreadIfImageExceptionThrown flag
Parameters:
Parameter
Type
Description
interruptThreadIfImageExceptionThrown
boolean
isAutoDetectRtlDirection()
public boolean isAutoDetectRtlDirection()
When enabled (default), paragraphs and runs whose text is dominantly right-to-left (RTL) will have their bidi flags repaired before conversion.
This matches the heuristic applied by Microsoft Word and LibreOffice and
fixes rendering of Arabic/Hebrew documents produced by generators
(notably Google Docs) that emit OOXML without
and with
on runs containing only RTL script.
Set to
false
to preserve strict OOXML interpretation of the
source markup.