CPDFConvertExcelOptions.h 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. //
  2. // CPDFConvertExcelOptions.h
  3. // ComPDFKit_Conversion
  4. //
  5. // Copyright © 2014-2023 PDF Technologies, Inc. All Rights Reserved.
  6. //
  7. // THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
  8. // AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE ComPDFKit LICENSE AGREEMENT.
  9. // UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
  10. // This notice may not be removed from this file.
  11. //
  12. #import <ComPDFKit_Conversion/CPDFConvertOptions.h>
  13. typedef NS_ENUM(NSInteger, CPDFConvertExcelContentOptions) {
  14. CPDFConvertExcelContentOnlyText = 0, // Only extract text in PDF and write it to XLSX without extracting the table.
  15. CPDFConvertExcelContentOnlyTable = 1, // Only extract table in PDF and write it to XLSX.
  16. CPDFConvertExcelContentAllContent = 2 // Extract all content in PDF and write it to XLSX, including table and non-table content.
  17. };
  18. typedef NS_ENUM(NSInteger, CPDFConvertExcelWorksheetOptions) {
  19. CPDFConvertExcelWorksheetForEachTable = 0, // Each table in the PDF is converted to one separate Worksheet.
  20. CPDFConvertExcelWorksheetForEachPage = 1, // All tables on one page in the PDF are converted to one separate Worksheet.
  21. CPDFConvertExcelWorksheetForTheDocument = 2 // All tables in the entire PDF are converted to one separate Worksheet.
  22. };
  23. /**
  24. * PDF to Excel conversion parameter object(derived class of CPDFConvertOptions).
  25. */
  26. @interface CPDFConvertExcelOptions : CPDFConvertOptions
  27. /**
  28. * Options to extract content.
  29. */
  30. @property (nonatomic,assign) CPDFConvertExcelContentOptions contentOptions;
  31. /**
  32. * Options to create Worksheet.
  33. */
  34. @property (nonatomic,assign) CPDFConvertExcelWorksheetOptions worksheetOptions;
  35. /**
  36. * Whether to use OCR.
  37. */
  38. @property (nonatomic,assign) BOOL isAllowOCR;
  39. /**
  40. * Whether the OCR background image is contained,this takes effect only when IsAllowOCR is true.
  41. */
  42. @property (nonatomic,assign) BOOL isContainOCRBgImage;
  43. /**
  44. * Set the OCR language,this takes effect only when IsAllowOCR is true.
  45. */
  46. @property (nonatomic,assign) COCRLanguage language;
  47. /**
  48. * Whether to contain annotations when converting.
  49. */
  50. @property (nonatomic,assign) BOOL isContainAnnotations;
  51. /**
  52. * Whether to contain images when converting.
  53. */
  54. @property (nonatomic,assign) BOOL isContainImages;
  55. @end