ConverterExcelDialogModel.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233
  1. using ComPDFKit_Conversion.Options;
  2. using Microsoft.AppCenter.Crashes.Ingestion.Models;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace PDF_Office.Model.Dialog.ConverterDialogs
  9. {
  10. public class ConverterExcelDialogModel : ConverterDialogsModel
  11. {
  12. public CPDFConvertExcelOptions excelOptions=new CPDFConvertExcelOptions();
  13. public CPDFConvertExcelOptions ExcelOptions() {
  14. excelOptions.OCRLanguage = Options.OCRLanguage;
  15. excelOptions.IsAllowOCR = Options.IsAllowOCR;
  16. excelOptions.IsContainOCRBgImage = Options.IsContainOCRBgImage;
  17. excelOptions.IsContainAnnotations = Options.IsContainAnnotations;
  18. excelOptions.IsContainImages = Options.IsContainImages;
  19. excelOptions.ContentOpts = Options.ContentOpts;
  20. excelOptions.WorksheetOpts = Options.WorksheetOpts;
  21. return excelOptions;
  22. }
  23. //public CPDFConvertExcelOptions ExcelOptions(WorksheetOptions worksheetOptions = WorksheetOptions.ForEachPage,ContentOptions contentOptions = ContentOptions.AllContent) {
  24. // excelOption.ContentOpts= contentOptions;
  25. // excelOption.WorksheetOpts= worksheetOptions;
  26. // return excelOption;
  27. //}
  28. }
  29. }