using ComDocumentAIKit; using ComPDFKit_Conversion.Converter; using ComPDFKit_Conversion.Options; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PDF_Office.Model.Dialog.HomePageToolsDialogs.HomePageBatchProcessing.HomePageConverter { public class ConvertOptions { public COCRLanguage OCRLanguage = COCRLanguage.English; public bool IsAllowOCR = false; public bool IsContainOCRBgImage = false; public bool IsContainAnnotations = true; public bool IsContainImages = true; public ContentOptions ContentOpts = ContentOptions.AllContent; public WorksheetOptions WorksheetOpts = WorksheetOptions.ForEachPage; public PageAndNavigationPaneOptions PageAndNavigationPaneOpts = PageAndNavigationPaneOptions.SinglePageNavigationByBookmarks; public ImgType ImageType = ImgType.PNG; public uint ImageDpi = 150; public bool IsMergeCsv = false; } public class HomePageConverterDialogModel { public static List GetConverter = new List { "HomePageConverterWord","HomePageConverterExcel","HomePageConverterPPT","HomePageConverterRTF","HomePageConverterCSV","HomePageConverterHTML","HomePageConverterText","HomePageConverterImg" }; /// /// 文档地址; /// public string InputPath = ""; /// /// 输出地址; /// public string OutputPath = ""; /// /// 进度; /// public OnProgress GetProgress = null; /// /// 页码 页码范围; /// public List PageIndexLists = new List { }; /// /// 页面信息 /// public string PageRange = "1,3-4,10"; /// /// 文档密码; /// public string Pawssword = ""; /// /// OCR,与部分功能; /// public ConvertOptions Options = new ConvertOptions(); } }