Class Convert.ExcelOutputOptions
A class containing options common to ToExcel functions
Inherited Members
Namespace: pdftron.PDF
Assembly: PDFNet.dll
Syntax
public class Convert.ExcelOutputOptions
Constructors
ExcelOutputOptions()
Creates a ExcelOutputOptions object with default settings
Declaration
public ExcelOutputOptions()
Methods
SetCustomOCRLanguage(string)
Specifies the custom OCR languages to use. Use 3-letter ISO 639-2 language codes, separated by spaces. Example: "eng deu spa fra". The default is English.
Declaration
public void SetCustomOCRLanguage(string ocrlang)
Parameters
Type | Name | Description |
---|---|---|
string | ocrlang | The OCR language(s). |
SetLanguage(LanguageChoice)
Specifies the OCR language. Default is automatic language detection.
Declaration
public void SetLanguage(Convert.OutputOptionsOCR.LanguageChoice language)
Parameters
Type | Name | Description |
---|---|---|
Convert.OutputOptionsOCR.LanguageChoice | language | the OCR language. |
SetNonTableContent(bool)
Specifies whether to convert non-tabular content. Default is false.
Declaration
public void SetNonTableContent(bool non_tables)
Parameters
Type | Name | Description |
---|---|---|
bool | non_tables | If false, only tabular content is converted to Excel. If true, all textual content is converted to Excel. |
SetPDFPassword(string)
Specifies the password if the PDF requires one.
Declaration
public void SetPDFPassword(string password)
Parameters
Type | Name | Description |
---|---|---|
string | password | the PDF password, if required; an empty string otherwise. |
SetPages(int, int)
Specifies a range of pages to be converted. By default all pages are converted. The first page has the page number of 1.
Declaration
public void SetPages(int page_from, int page_to)
Parameters
Type | Name | Description |
---|---|---|
int | page_from | the first page to be converted. |
int | page_to | the last page to be converted (inclusive). Use a negative value to specify the last page in the PDF. |
SetPreferredOCREngine(PreferredOCREngine)
Specifies the preferred OCR engine.
Declaration
public void SetPreferredOCREngine(Convert.OutputOptionsOCR.PreferredOCREngine engine)
Parameters
Type | Name | Description |
---|---|---|
Convert.OutputOptionsOCR.PreferredOCREngine | engine | The preferred OCR engine. |
SetSingleSheet(bool)
Specifies whether to combine all tables into a single sheet. Default is false.
Declaration
public void SetSingleSheet(bool single_sheet)
Parameters
Type | Name | Description |
---|---|---|
bool | single_sheet | If false, each logical table goes to a separate Excel sheet. If true, all logical tables are combined into a single Excel sheet. |