new ExcelOutputOptions()
A class containing options common to ToExcel functions
Methods
-
setLanguage(language)
-
Specifies the OCR language. Default is automatic language detection. Note: This option is only available for e_reflow_paragraphs mode.
Parameters:
Name Type Description language
number PDFNet.Convert.OutputOptionsOCR.LanguageChoice = { e_lang_auto: 0, e_lang_catalan: 1, e_lang_danish: 2, e_lang_german: 3, e_lang_english: 4, e_lang_spanish: 5, e_lang_finnish: 6, e_lang_french: 7, e_lang_italian: 8, e_lang_dutch: 9, e_lang_norwegian: 10, e_lang_portuguese: 11, e_lang_polish: 12, e_lang_romanian: 13, e_lang_russian: 14, e_lang_slovenian: 15, e_lang_swedish: 16, e_lang_turkish: 17 }
the OCR language.Returns:
this object, for call chaining -
setNonTableContent(non_tables)
-
Specifies whether to convert non-tabular content. Default is false.
Parameters:
Name Type Description non_tables
boolean If false, only tabular content is converted to Excel. If true, all textual content is converted to Excel. -
setPages(page_from, page_to)
-
Specifies a range of pages to be converted. By default all pages are converted. The first page has the page number of 1.
Parameters:
Name Type Description page_from
number the first page to be converted. page_to
number the last page to be converted (inclusive). Use a negative value to specify the last page in the PDF. Returns:
this object, for call chaining -
setPDFPassword(password)
-
Specifies the password if the PDF requires one.
Parameters:
Name Type Description password
string the PDF password, if required; an empty string otherwise. Returns:
this object, for call chaining -
setSingleSheet(single_sheet)
-
Specifies whether to combine all tables into a single sheet. Default is false.
Parameters:
Name Type Description single_sheet
boolean If false, each logical table goes to a separate Excel sheet. If true, all logical tables are combined into a single Excel sheet.