Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aspose-com-gists/063356f993b8fdd63f1c81267e6eb9dc to your computer and use it in GitHub Desktop.
Save aspose-com-gists/063356f993b8fdd63f1c81267e6eb9dc to your computer and use it in GitHub Desktop.
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