Java API to Export XLSX to DOC

On Premise Java API to Export XLSX to DOC without relying on Microsoft Excel®

How to Convert XLSX to DOC via Java API

Rendering XLSX to DOC is a two step process. You’ll first use Aspose.Cells for Java API to convert the given XLSX document to PDF, and then by using Aspose.Pdf for Java API, you can easily convert your PDF document to DOC. Both APIs come under the collection of Aspose.Total for Java file format automation libraries.

XLSX to DOC Conversion on Java

  1. Open XLSX file using Workbook class
  2. Convert XLSX to PDF and set SaveFormat to AUTO
  3. Load the converted PDF file using Document class
  4. Save the document to DOC format using save method and set Doc as SaveFormat

Get Started with Java File Format APIs

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

Alternatively, you can get a ZIP file from downloads .

Java Code for XLSX to DOC Conversion

Workbook book = new Workbook("input.xlsx");
// save XLSX as PDF"pdfOutput.pdf", com.aspose.cells.SaveFormat.AUTO);
// load the PDF file using Document class
Document document = new Document("pdfOutput.pdf");
// save document in DOC format"output.doc", com.aspose.pdf.SaveFormat.Doc);  

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

DOC What is DOC File Format?

Files with .doc extension represent documents generated by Microsoft Word or other word processing documents in binary file format. The extension was initially used for plain text documentation on several different operating systems. It can contain several different types of data such as images, formatted as well as plain text, graphs, charts, embedded objects, links, pages, page formatting, print settings and a lot others.

Read More

Other Conversion Options

XLSX TO PPTX (Open XML presentation Format)
XLSX TO DOCX (Office 2007+ Word Document)