|
@@ -2,26 +2,27 @@ import 'package:ConversionFlutterDemo/models/convert_bean.dart';
|
|
|
|
|
|
class ConvertOptionsBean {
|
|
|
|
|
|
-
|
|
|
+ //The 'containImage' parameter is used when converting to ppt, word, excel、rtf、html format
|
|
|
bool containImages;
|
|
|
+ //The 'containImage' parameter is used when converting to ppt、word、excel、image、rtf、html format
|
|
|
bool containAnnotations;
|
|
|
|
|
|
- //convert excel only
|
|
|
+ //Only used when converting to excel
|
|
|
ExcelWorkSheetOptions workSheetOptions;
|
|
|
|
|
|
- //convert excel only
|
|
|
+ //Only used when converting to excel
|
|
|
ContentOptions contentOptions = ContentOptions.AllContent;
|
|
|
|
|
|
- //convert image only, 1~1000
|
|
|
+ //Only used when converting to image, the limited range is 1~1000
|
|
|
int imageDpi = 300;
|
|
|
|
|
|
- //convert image only
|
|
|
+ //Only used when converting to image
|
|
|
ImagePageOptions imagePageOptions;
|
|
|
|
|
|
- //convert csv only
|
|
|
+ //Only used when converting to csv
|
|
|
bool mergeCSV = false;
|
|
|
|
|
|
- //convert html only
|
|
|
+ //Only used when converting to html
|
|
|
HtmlPageOptions htmlPageOptions;
|
|
|
|
|
|
ConvertOptionsBean(
|
|
@@ -35,6 +36,13 @@ class ConvertOptionsBean {
|
|
|
this.htmlPageOptions = HtmlPageOptions.SinglePage});
|
|
|
|
|
|
|
|
|
+ ///You do not need to pass all the parameters below. Please pass them according to the format of the conversion.
|
|
|
+ ///convert to ppt,word,rtf : containImages,containAnnotations
|
|
|
+ ///convert to excel : containImages, containAnnotations, workSheetOptions, contentOptions
|
|
|
+ ///convert to image : containAnnotations, imageDpi, imagePageOptions
|
|
|
+ ///convert to csv : mergeCSV
|
|
|
+ ///convert to html : containImages, containAnnotations, htmlPageOptions
|
|
|
+ ///
|
|
|
Map<String, String> getOptions(ConvertBean bean) {
|
|
|
return {
|
|
|
'dataTag' : bean.tag,
|