Created
January 3, 2020 10:29
-
-
Save aspose-com-gists/063356f993b8fdd63f1c81267e6eb9dc to your computer and use it in GitHub Desktop.
Aspose.PDF for .NET - PDF to Excel Conversions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Load PDF document | |
Document pdfDocument = new Document("sampletable.pdf"); | |
ExcelSaveOptions options = new ExcelSaveOptions(); | |
// Save output file | |
pdfDocument.Save("Excel.xls", options); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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