public class LocalConversionTask extends AbstractLocalOfficeTask
loadProperties, useStreamAdapters| Constructor and Description |
|---|
LocalConversionTask(@NonNull org.jodconverter.core.job.SourceDocumentSpecs source,
@NonNull org.jodconverter.core.job.TargetDocumentSpecs target,
boolean useStreamAdapters,
@Nullable Map<String,Object> loadProperties,
@Nullable Map<String,Object> storeProperties,
@Nullable FilterChain filterChain)
Creates a new conversion task from a specified source to a specified target.
|
| Modifier and Type | Method and Description |
|---|---|
void |
execute(@NonNull org.jodconverter.core.office.OfficeContext context) |
protected void |
modifyDocument(@NonNull org.jodconverter.core.office.OfficeContext context,
@NonNull com.sun.star.lang.XComponent document) |
protected void |
storeDocument(@NonNull com.sun.star.lang.XComponent document,
@NonNull File targetFile) |
@NonNull String |
toString() |
appendProperties, closeDocument, getLoadProperties, loadDocumentpublic LocalConversionTask(@NonNull org.jodconverter.core.job.SourceDocumentSpecs source,
@NonNull org.jodconverter.core.job.TargetDocumentSpecs target,
boolean useStreamAdapters,
@Nullable Map<String,Object> loadProperties,
@Nullable Map<String,Object> storeProperties,
@Nullable FilterChain filterChain)
source - The source specifications for the conversion.target - The target specifications for the conversion.useStreamAdapters - Indicates whether document are loaded/stored using stream adapters.loadProperties - The load properties to be applied when loading the document. These
properties are added after the load properties of the document format specified in the
source arguments.storeProperties - The store properties to be applied when storing the document. These
properties are added after the store properties of the document format specified in the
target arguments.filterChain - The filter chain to use with this task.public void execute(@NonNull org.jodconverter.core.office.OfficeContext context)
throws org.jodconverter.core.office.OfficeException
org.jodconverter.core.office.OfficeExceptionprotected void modifyDocument(@NonNull org.jodconverter.core.office.OfficeContext context,
@NonNull com.sun.star.lang.XComponent document)
throws org.jodconverter.core.office.OfficeException
org.jodconverter.core.office.OfficeExceptionprotected void storeDocument(@NonNull com.sun.star.lang.XComponent document,
@NonNull File targetFile)
throws org.jodconverter.core.office.OfficeException
org.jodconverter.core.office.OfficeExceptionpublic @NonNull String toString()
toString in class AbstractLocalOfficeTaskCopyright © 2022 - present; JODConverter. All rights reserved.