Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Aspose.PDF for .NET - PDF to Excel Conversions
// Load PDF document
Document pdfDocument = new Document("sampletable.pdf");
// Initialize ExcelSaveOptions
ExcelSaveOptions options = new ExcelSaveOptions();
// Set output format
options.Format = ExcelSaveOptions.ExcelFormat.XLSX;
// To insert blank column as first column to the Worksheet
options.InsertBlankColumnAtFirst = true;
// Save output file
pdfDocument.Save("Excel.xlsx", options);
// Load PDF document
Document pdfDocument = new Document("sampletable.pdf");
// Initialize ExcelSaveOptions
ExcelSaveOptions options = new ExcelSaveOptions();
// Set output format
options.Format = ExcelSaveOptions.ExcelFormat.XLSX;
// Minimize number of Worksheets
options.MinimizeTheNumberOfWorksheets = true;
// Save output file
pdfDocument.Save("Excel.xlsx", options);
// Load PDF document
Document pdfDocument = new Document("sampletable.pdf");
ExcelSaveOptions options = new ExcelSaveOptions();
// Save output file
pdfDocument.Save("Excel.xls", options);
// Load PDF document
Document pdfDocument = new Document("sampletable.pdf");
// Initialize ExcelSaveOptions
ExcelSaveOptions options = new ExcelSaveOptions();
// Set output format
options.Format = ExcelSaveOptions.ExcelFormat.XLSX;
// Save output file
pdfDocument.Save("Excel.xlsx", options);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.