Class XlsConverter
معلومات
يمثل ملحق Documentize.XlsConverter. يُستخدم لتحويل مستندات PDF إلى صيغ XLSX/XLS/CSV/XLSM/ODS.
public static class XlsConverter
Inheritance
Inherited Members
- object.GetType(),
- object.MemberwiseClone(),
- object.ToString(),
- object.Equals(object?),
- object.Equals(object?, object?),
- object.ReferenceEquals(object?, object?),
- object.GetHashCode()
Examples
The example demonstrates how to convert PDF to XLSX document.
// Create PdfToXlsOptions object to set instructions
var options = new PdfToXlsOptions();
// Add input file path
options.AddInput(new FileDataSource("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileDataSource("path_to_result_xlsx_file.xlsx"));
// Perform the process
XlsConverter.Process(options);
The example demonstrates how to convert PDF to XLS document.
// Create PdfToXlsOptions object to set instructions
var options = new PdfToXlsOptions();
// Add input file path
options.AddInput(new FileDataSource("path_to_your_pdf_file.pdf"));
// Specify XLS format
options.Format = PdfToXlsOptions.ExcelFormat.XMLSpreadSheet2003;
options.InsertBlankColumnAtFirst = true;
options.MinimizeTheNumberOfWorksheets = true;
// Set output file path
options.AddOutput(new FileDataSource("path_to_result_xlsx_file.xls"));
// Perform the process
XlsConverter.Process(options);
Methods
Process(PdfToXlsOptions)
Converts PDF document into XLSX/XLS/CSV/XLSM/ODS formats.
public static ResultContainer Process(PdfToXlsOptions options)
Parameters
options
PdfToXlsOptions: كائن خيارات يحتوي على تعليمات العملية.
Returns
ResultContainer : كائن يحتوي على نتيجة العملية.
Exceptions
إذا لم يتم تعيين الخيارات.
Namespace: Documentize Assembly: Documentize.dll