XER to PDF Java

XER files are used to organize materials, resources, tasks, etc. related to project planning. It is commonly used to exchange data related to different projects. In some cases, you may need to convert an XER file to PDF format. Accordingly, this article discusses how to convert XER to PDF in Java.

Visio to PDF Converter - Java API Configuration

Aspose.Tasks for Java can be used to work with Project Management files like MPP, XER, etc. Simply download the JAR file from the Downloads section, or using the Maven configurations below in the pom.xml file to access the API from Aspose repository:

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-tasks</artifactId>
        <version>22.8</version>
        <classifier>jdk17</classifier>
    </dependency>
</dependencies>

Convert XER to PDF in Java

You can convert an XER file to a PDF document by following the steps below:

  1. Load the source XER file with the Project class.
  2. Export the XER file to PDF format using the Save method.

The following code snippet shows how to convert an XER file to a PDF document in Java:

Convert XER to PDF with Advanced Options in Java

You can use different properties to export XER to a PDF file. The PdfSaveOptions class exposes different properties to change PDF file characteristics. The steps below elaborate how to convert an XER to PDF format with advanced options programmatically in Java:

  1. Initialize a Project class object to load input XER file.
  2. Create an object of PdfSaveOptions class object.
  3. Set different options for the PDF file.
  4. Convert the XER file to PDF format.

The following code snippet demonstrates how to convert an XER file to PDF format with advanced options programmatically in Java:

Get a Free License

You can request a free temporary license to evaluate the API without any evaluation limitations.

Conclusion

In this article, you have learned how to export an XER file to a PDF document programmatically in Java. Moreover, you may visit the documentation space to learn other features of the API. Please feel free to reach out to us via the forum in case of any concerns.

See Also