HomePageConverterDialogModel.cs 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. using ComDocumentAIKit;
  2. using ComPDFKit_Conversion.Converter;
  3. using ComPDFKit_Conversion.Options;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. namespace PDF_Master.Model.Dialog.HomePageToolsDialogs.HomePageBatchProcessing.HomePageConverter
  10. {
  11. public class ConvertOptions
  12. {
  13. public COCRLanguage OCRLanguage = COCRLanguage.COCRLanguageEnglish;
  14. public bool IsAllowOCR = false;
  15. public bool IsContainOCRBgImage = false;
  16. public bool IsContainAnnotations = true;
  17. public bool IsContainImages = true;
  18. public ContentOptions ContentOpts = ContentOptions.AllContent;
  19. public WorksheetOptions WorksheetOpts = WorksheetOptions.ForEachPage;
  20. public PageAndNavigationPaneOptions PageAndNavigationPaneOpts = PageAndNavigationPaneOptions.SinglePageNavigationByBookmarks;
  21. public ImgType ImageType = ImgType.PNG;
  22. public uint ImageDpi = 150;
  23. public bool IsMergeCsv = false;
  24. }
  25. public class HomePageConverterDialogModel
  26. {
  27. public static List<string> GetConverter = new List<string> { "HomePageConverterWord","HomePageConverterExcel","HomePageConverterPPT","HomePageConverterRTF","HomePageConverterCSV","HomePageConverterHTML","HomePageConverterText","HomePageConverterImg" };
  28. /// <summary>
  29. /// 文档地址;
  30. /// </summary>
  31. public string InputPath = "";
  32. /// <summary>
  33. /// 输出地址;
  34. /// </summary>
  35. public string OutputPath = "";
  36. /// <summary>
  37. /// 进度;
  38. /// </summary>
  39. public OnProgress GetProgress = null;
  40. /// <summary>
  41. /// 页码 页码范围;
  42. /// </summary>
  43. public List<int> PageIndexLists = new List<int> { };
  44. /// <summary>
  45. /// 页面信息
  46. /// </summary>
  47. public string PageRange = "1,3-4,10";
  48. /// <summary>
  49. /// 文档密码;
  50. /// </summary>
  51. public string Pawssword = "";
  52. /// <summary>
  53. /// OCR,与部分功能;
  54. /// </summary>
  55. public ConvertOptions Options = new ConvertOptions();
  56. }
  57. }