Created
May 22, 2021 18:09
-
-
Save GroupDocsGists/c54011c23506f561da98126b8307f13c to your computer and use it in GitHub Desktop.
Convert PDF or Word file to Excel Spreadsheet in Java
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
// Convert PDF document to Excel Spreadsheet in Java | |
Converter converter = new Converter("document.pdf"); | |
SpreadsheetConvertOptions options = new SpreadsheetConvertOptions(); | |
converter.convert("pdfToExcel.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
// Convert second page of PDF file to Excel in Java with some options | |
Converter converter = new Converter("document.pdf"); | |
SpreadsheetConvertOptions options = new SpreadsheetConvertOptions(); | |
options.setPageNumber(2); | |
options.setPagesCount(1); | |
options.setFormat(SpreadsheetFileType.Xlsx); | |
options.setZoom(120); | |
converter.convert("pdfToExcelAdv.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
// Convert Word document to Excel Spreadsheet in Java | |
Converter converter = new Converter("document.docx"); | |
SpreadsheetConvertOptions options = new SpreadsheetConvertOptions(); | |
converter.convert("wordToExcel.xlsx", options); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment