Class: ExcelOutputOptions

PDFNet.Convert. ExcelOutputOptions


new ExcelOutputOptions()

A class containing options common to ToExcel functions

Methods


setCustomOCRLanguage(ocrlang)

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.
Parameters:
Name Type Description
ocrlang string the OCR language(s).
Returns:
this object, for call chaining
Type
PDFNet.Convert.ExcelOutputOptions

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
Type
PDFNet.Convert.ExcelOutputOptions

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
Type
PDFNet.Convert.ExcelOutputOptions

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
Type
PDFNet.Convert.ExcelOutputOptions

setPreferredOCREngine(engine)

Specifies the preferred OCR engine. Default is solidocr.
Parameters:
Name Type Description
engine number
PDFNet.Convert.OutputOptionsOCR.PreferredOCREngine = {
	e_engine_default: 0,
	e_engine_tesseract: 1
}
the OCR engine.
Returns:
this object, for call chaining
Type
PDFNet.Convert.ExcelOutputOptions

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.