Package com.compdfkit.conversion
Class CPDFConverterWord
-
- All Implemented Interfaces:
public final class CPDFConverterWord extends CPDFConverter
PDF to Word conversion operation object (derived class of CPDFConverter)
-
-
Field Summary
Fields Modifier and Type Field Description private final Boolean
isConverting
-
Constructor Summary
Constructors Constructor Description CPDFConverterWord(Context context, Uri uri, String userPwd)
-
Method Summary
Modifier and Type Method Description ConvertError
convert(String outputDir, String outputFilenameNoSuffix, CPDFConvertOptions options, IntArray pageArrays, Function1<Long, Unit> onHandle, Function2<Integer, Integer, Unit> onProgress, Function2<ConvertError, String, Unit> onPost)
Starts the conversion. ConvertError
cancle()
Cancels the conversion task. -
-
Method Detail
-
convert
@Synchronized() ConvertError convert(String outputDir, String outputFilenameNoSuffix, CPDFConvertOptions options, IntArray pageArrays, Function1<Long, Unit> onHandle, Function2<Integer, Integer, Unit> onProgress, Function2<ConvertError, String, Unit> onPost)
Starts the conversion.
- Parameters:
outputDir
- output pathoutputFilenameNoSuffix
- The filename of the output file, the default pass "" adopts the built-in naming rulesoptions
- The derived class parameter of the specified conversion CPDFConvertOptionspageArrays
- Array of page numbers, such as 1,2,…,5onHandle
- Task start callback functiononProgress
- Task in progress callback functiononPost
- Task end callback function
-
cancle
ConvertError cancle()
Cancels the conversion task.
-
-
-
-