PTExcelOutputOptions
@interface PTExcelOutputOptions : NSObject
A class containing options common to ToExcel functions
-
Creates a ExcelOutputOptions object with default settings.
Declaration
Objective-C
- (instancetype)init;Swift
init!() -
Specifies a range of pages to be converted. By default all pages are converted. The first page has the page number of 1.
Declaration
Objective-C
- (void)SetPages:(int)page_from page_to:(int)page_to;Swift
func setPages(_ page_from: Int32, page_to: Int32)Parameters
page_fromthe first page to be converted.
page_tothe last page to be converted (inclusive). Use a negative value to specify the last page in the PDF.
-
Specifies the password if the PDF requires one.
Declaration
Objective-C
- (void)SetPDFPassword:(NSString *)password;Swift
func setPDFPassword(_ password: String!)Parameters
passwordthe PDF password, if required; an empty string otherwise.
-
Specifies the OCR language. Default is automatic language detection.
Declaration
Objective-C
- (void)SetLanguage:(PTLanguageChoice)language;Swift
func setLanguage(_ language: PTLanguageChoice)Parameters
languagethe OCR language.
-
Specifies preferred OCR engine.
Declaration
Objective-C
- (void)SetPreferredOCREngine:(PTPreferredOCREngine)engine;Swift
func setPreferredOCREngine(_ engine: PTPreferredOCREngine)Parameters
engineThe PreferredOCREngine to OCR.
-
Specifies the custom OCR languages to use.
Note
Use 3-letter ISO 639-2 language codes, separated by spaces. Example: “eng deu spa fra”. The default is English.Declaration
Objective-C
- (void)SetCustomOCRLanguage:(NSString *)ocrlang;Swift
func setCustomOCRLanguage(_ ocrlang: String!)Parameters
ocrlangthe OCR language(s).
-
Specifies whether to convert non-tabular content. Default is false.
Declaration
Objective-C
- (void)SetNonTableContent:(BOOL)non_tables;Swift
func setNonTableContent(_ non_tables: Bool)Parameters
non_tablesIf false, only tabular content is converted to Excel. If true, all textual content is converted to Excel.
-
Specifies whether to combine all tables into a single sheet. Default is false.
Declaration
Objective-C
- (void)SetSingleSheet:(BOOL)single_sheet;Swift
func setSingleSheet(_ single_sheet: Bool)Parameters
single_sheetIf false, each logical table goes to a separate Excel sheet. If true, all logical tables are combined into a single Excel sheet.
PTExcelOutputOptions Class Reference