Visio files like a VSD or VSDX are used to create drawings like organizational charts, a map of a building, etc. Likewise, it can include text or graphics which you may need to edit with a word processor. For such requirements, you can convert a Visio VSD or VSDX file to a Word document in DOC or DOCX format programmatically in Java.
- VSD/VSDX to Word DOC or DOCX Converter – Java API Installation
- Convert Visio VSD/VSDX Diagram to Word DOC Document in Java
- Convert Visio VSD/VSDX Diagram to Word DOCX Programmatically in Java
VSD/VSDX to Word DOC or DOCX Converter – Java API Installation
Visio files like VSD or VSDX can be converted to Word files in DOC or DOCX format with a two-step process. The input file is converted to PDF format with Aspose.Diagram for Java API and then convert this PDF file to DOC or DOCX Word document using Aspose.PDF for Java API. Simply configure the API by downloading the JAR files from the New Releases section or using the following details in pom.xml to install these from Aspose Repository:
<repositories> <repository> <id>AsposeJavaAPI</id> <name>Aspose Java API</name> <url>http://repository.aspose.com/repo/</url> </repository> </repositories>
<dependencies> <dependency> <groupId>com.aspose</groupId> <artifactId>aspose-diagram</artifactId> <version>22.3</version> <classifier>jdk16</classifier> </dependency> <dependency> <groupId>com.aspose</groupId> <artifactId>aspose-pdf</artifactId> <version>22.2</version> </dependency> </dependencies>
Convert Visio VSD/VSDX Diagram to Word DOC Document in Java
You need to follow the steps below to convert a VSD or VSDX Visio file to a Word document with DOC file extension:
- Initialize a Diagram class instance to load the input Visio file.
- Convert the VSD or VSDX file to an intermediate PDF document.
- Convert the PDF document to Word file with DOC file extension.
The following code sample demonstrates how to convert a VSD or VSDX diagram to a Word file in DOC format programmatically using Java:
Convert Visio VSD/VSDX Diagram to Word DOCX Programmatically in Java
Please follow the steps below in order to convert a VSD or VSDX file to DOCX format:
- Initialize an object of the Diagram class to load input VSD or VSDX file.
- Export the input file to PDF format with the Save method.
- Convert the PDF file to DOCX format with the Document class.
The code snippet below demonstrates how to convert a Visio diagram in VSD or VSDX format to a Word document with DOCX extension programmatically in Java:
Get Free API License
You can evaluate the API in its full capacity by getting a free temporary license.
In this article, you have learned how to convert a Visio diagram in VSD or VSDX format to a Word file as a DOC or DOCX document programmatically in Java. Additionally, you can check out the support for other Visio features by going through the documentation section. In case of any inquiries, please feel free to contact us at the forum.