Convert DOCX to EXCEL via Java

On Premise Java API to convert DOCX to EXCEL without using Microsoft® Word or Microsoft® Excel

 

You can converting DOCX to EXCEL via Aspose.Total for Java is a simple two step process. By using feature-rich, document manipulation and conversion API Aspose.Words for Java , you can export DOCX to HTML. After that, by using Aspose.Cells for Java , you can convert HTML to EXCEL.

Convert DOCX to EXCEL via Java

  1. Open DOCX file using Document class
  2. Convert DOCX to HTML by using Save method
  3. Load HTML document by using Workbook class
  4. Save the document to XLSX format using Save method

Get Started with Java File Automation APIs

You can easily use Aspose.Total for Java directly from a Maven based project and include libraries in your pom.xml.

Alternatively, you can get a ZIP file from downloads .

Convert Protected DOCX to EXCEL via Java

Using the API, you can also open the password-protected document. If your input DOCX document is password protected, you cannot convert it to EXCEL without using the password. The API allows you to open the encrypted document by passing the correct password in a LoadOptions object. The following code example shows how to try opening an encrypted document with a password:

Convert DOCX to Protected EXCEL file via Java

After you convert DOCX to EXCEL, you can also encrypt and password protect your EXCEL documents. In order to encrypt your document, open it using Workbook class and specify XOR Encryption Type and Strong Encryption type (RC4, Microsoft Strong Cryptographic Provider) encryption by using the setEncryptionOptions method. You can also set a password to your EXCEL by using the Password property of WorkbookSettings class.

Other Conversion Options

DOCX TO CSV (Comma Seperated Values)
DOCX TO SXC (StarOffice Calc Spreadsheet)
DOCX TO XLT (Excel 97 - 2003 Template)
DOCX TO XLSM (Macro-enabled Spreadsheet)
DOCX TO XLSB (Excel Binary Workbook)
DOCX TO XLTX (Excel Template)
DOCX TO XLS (Microsoft Excel Spreadsheet (Legacy))
DOCX TO TSV (Tab Seperated Values)
DOCX TO ODS (OpenDocument Spreadsheet)
DOCX TO XLAM (Excel Macro-Enabled Add-In)
DOCX TO XLTM (Excel Macro-Enabled Template)
DOCX TO FODS (OpenDocument Flat XML Spreadsheet)
DOCX TO DIF (Data Interchange Format)

DOCX What is DOCX File Format?

DOCX is a well-known format for Microsoft Word documents. Introduced from 2007 with the release of Microsoft Office 2007, the structure of this new Document format was changed from plain binary to a combination of XML and binary files. Docx files can be opened with Word 2007 and lateral versions but not with the earlier versions of MS Word which support DOC file extensions.

Read More

XLSX What is XLSX File Format?

XLSX is well-known format for Microsoft Excel documents that was introduced by Microsoft with the release of Microsoft Office 2007. Based on structure organized according to the Open Packaging Conventions as outlined in Part 2 of the OOXML standard ECMA-376, the new format is a zip package that contains a number of XML files. The underlying structure and files can be examined by simply unzipping the .xlsx file.

Read More