public static final class LocalConverter.Builder extends org.jodconverter.core.job.AbstractConverter.AbstractConverterBuilder<LocalConverter.Builder>
LocalConverter.LocalConverter| Modifier and Type | Method and Description |
|---|---|
@NonNull LocalConverter.Builder |
applyDefaultLoadProperties(boolean applyDefaultLoadProperties)
Specifies this converter will apply the default load properties when loading a source
document.
|
@NonNull LocalConverter |
build() |
@NonNull LocalConverter.Builder |
filterChain(Filter... filters)
Specifies the filters to apply when converting a document.
|
@NonNull LocalConverter.Builder |
filterChain(@NonNull FilterChain filterChain)
Specifies the whole filter chain to apply when converting a document.
|
@NonNull LocalConverter.Builder |
loadDocumentMode(@Nullable LoadDocumentMode loadDocumentMode)
Specifies how a document is loaded/stored when converting a document, whether it is loaded
assuming the office process has access to the file on disk or not.
|
@NonNull LocalConverter.Builder |
loadProperties(@NonNull Map<String,Object> loadProperties)
Specifies properties, for this converter, that will be applied when a document is loaded
during a conversion task, regardless of the input format of the document.
|
@NonNull LocalConverter.Builder |
loadProperty(@NonNull String name,
@NonNull Object value)
Specifies a property, for this converter, that will be applied when a document is loaded
during a conversion task, regardless of the input format of the document.
|
@NonNull LocalConverter.Builder |
storeProperties(@NonNull Map<String,Object> storeProperties)
Specifies the properties that will be applied when a document is stored during the conversion
task, regardless of the output format of the document.
|
@NonNull LocalConverter.Builder |
storeProperty(@NonNull String name,
@NonNull Object value)
Specifies a property, for this converter, that will be applied when a document is stored
during a conversion task, regardless of the output format of the document.
|
@NonNull LocalConverter.Builder |
useUnsafeQuietUpdate(boolean useUnsafeQuietUpdate)
Specifies whether this converter will use the unsafe
UpdateDocMode.QUIET_UPDATE as
default for the UpdateDocMode load property, which was the default until JODConverter
version 4.4.4. |
public @NonNull LocalConverter build()
build in class org.jodconverter.core.job.AbstractConverter.AbstractConverterBuilder<LocalConverter.Builder>public @NonNull LocalConverter.Builder applyDefaultLoadProperties(boolean applyDefaultLoadProperties)
Default: true
Default load properties are:
When building the load properties map that will be used to load a source document, the
load properties of the input DocumentFormat, if any,
are put in the map first. Then, the LocalConverter.DEFAULT_LOAD_PROPERTIES, if required, are added
to the map. Finally, any properties specified in the loadProperty(String, Object) or
loadProperties(Map) are put in the map.
applyDefaultLoadProperties - true to apply the default load properties false otherwise.public @NonNull LocalConverter.Builder useUnsafeQuietUpdate(boolean useUnsafeQuietUpdate)
UpdateDocMode.QUIET_UPDATE as
default for the UpdateDocMode load property, which was the default until JODConverter
version 4.4.4.
See this article for more detail;s about the security issue:
useUnsafeQuietUpdate - true to use the unsafe quiet update property, false otherwise.public @NonNull LocalConverter.Builder loadDocumentMode(@Nullable LoadDocumentMode loadDocumentMode)
Default: LoadDocumentMode.AUTO
loadDocumentMode - The load document mode.public @NonNull LocalConverter.Builder loadProperty(@NonNull String name, @NonNull Object value)
When building the load properties map that will be used to load a source document, the
load properties of the input DocumentFormat, if any,
are put in the map first. Then, the LocalConverter.DEFAULT_LOAD_PROPERTIES, if required, are added
to the map. Finally, any properties specified in the loadProperty(String, Object) or
loadProperties(Map) are put in the map.
Any property set here will override the property with the same name from the input document format or the default load properties.
name - The property name.value - The property value.public @NonNull LocalConverter.Builder loadProperties(@NonNull Map<String,Object> loadProperties)
When building the load properties map that will be used to load a source document, the
load properties of the input DocumentFormat, if any,
are put in the map first. Then, the LocalConverter.DEFAULT_LOAD_PROPERTIES, if required, are added
to the map. Finally, any properties specified in the loadProperty(String, Object) or
loadProperties(Map) are put in the map.
Any property set here will override the property with the same name from the input document format or the default load properties.
loadProperties - A map containing the properties to apply when loading a document.public @NonNull LocalConverter.Builder filterChain(Filter... filters)
filters - The filters to be applied after the document is loaded and before it is stored
(converted) in the new document format.public @NonNull LocalConverter.Builder filterChain(@NonNull FilterChain filterChain)
filterChain - The FilterChain to be applied after the document is loaded and before it
is stored (converted) in the new document format.public @NonNull LocalConverter.Builder storeProperty(@NonNull String name, @NonNull Object value)
Custom properties are applied after the store properties of the target DocumentFormat, so any property set here will override the
property with the same name from the document format.
name - The property name.value - The property value.public @NonNull LocalConverter.Builder storeProperties(@NonNull Map<String,Object> storeProperties)
Custom properties are applied after the store properties of the target DocumentFormat, so any property set here will override the
property with the same name from the document format.
storeProperties - A map containing the custom properties to apply when storing a
document.Copyright © 2016 - present; JODConverter.org. All rights reserved.