VSDX VSD Visio to PDF java

VSD or VSDX Visio files are commonly used to design processes, workflows, flow charts, etc. However, these file types are supported by a limited number of applications. In certain situations, you may need to convert a VSDX or VSD Visio file to a PDF document. This article covers how to convert a VSD VSDX Diagram file to a PDF document using Java:

Visio to PDF Converter - Java API Configuration

Aspose.Diagram for Java is a class library designed to create, edit, or manipulate MS Visio diagrams from Java-based applications. You can download the JAR file from the New Releases section, or use the following Maven configurations in the pom.xml file of your project:

Repository:

 <repositories>
    <repository>
        <id>AsposeJavaAPI</id>
        <name>Aspose Java API</name>
        <url>http://repository.aspose.com/repo/</url>
    </repository>
</repositories>

Dependency:

 <dependencies>
    <dependency>
        <groupId>com.aspose</groupId>
        <artifactId>aspose-diagram</artifactId>
        <version>21.10</version>
        <classifier>jdk16</classifier>
    </dependency>
</dependencies>

Convert VSD/VSDX Visio Diagram to PDF in Java

You can convert a VSD or VSDX file to PDF with the following steps:

  1. Create a Diagram class object to load a VSD/VSDX Visio file.
  2. Convert the Visio diagram to a PDF file with Save) method.

The following code snippet shows how to convert a VSD/VSDX file to a PDF document using Java:

Convert VSDX/VSD Diagram to PDF with Advanced Options in Java

You can customize the Visio VSD/VSDX conversion to a PDF document using different properties like the page size, encryption, PDF/A compliance, etc. The following steps show how to convert a VSDX or VSD Diagram file to a PDF document programmatically using Java:

  1. Create a Diagram class object to load a VSD/VSDX diagram.
  2. Initialize PdfSaveOptions for saving a diagram.
  3. Set conformance level for generated PDF document.
  4. Set encryption details and page size.
  5. Convert the VSDX Visio file to a PDF file.

The code snippet below shows how to convert a VSD/VSDX Visio file to a PDF document with encryption and PDF/A compliance programmatically with Java:

Get a Free License

You can request Free Temporary License for evaluating the API in its full capacity.

Conclusion

Aspose.Diagram for Java API provides a lot of features for working with VSD/VSDX Visio diagrams. Moreover, it provides high-fidelity conversion of diagrams to PDF file format. In this article, you have explored how to convert a VSD or VSDX diagram to PDF format programmatically using Java. You can learn more about the API by taking a look at the Documentation. In case of any inquiry, please feel free to write to us at the Free Support Forum.

See Also