Convert Primavera XER to PDF using Java

Oracle Primavera P6 uses the XER format to store project data. XER is a text file that can be opened with any editor, supports exporting multiple projects, and is the only format for importing and exporting roles. PDF files are portable, secure, and viewable on any device. This post shows how to convert XER to PDF in Java.

This article covers the following topics:

  1. Java Tasks API to Convert XER to PDF
  2. Convert Primavera XER File to PDF
  3. Get a Free License
  4. XER to PDF Converter Online
  5. Free Learning Resources

Java Tasks API to Convert XER to PDF

We will use the Aspose.Tasks for Java API to convert a Primavera XER file to PDF. This library lets Java developers read, write, manipulate, and convert Microsoft Project files (MPP9 and XML10) without installing Microsoft Project. It simplifies adding project file processing to Java applications.

Please download the JAR of the API or add the following pom.xml configuration in a Maven-based Java application.

<repository>
    <id>AsposeJavaAPI</id>
    <name>Aspose Java API</name>
    <url>https://releases.aspose.com/java/repo/</url>
</repository> 
<dependency>
    <groupId>com.aspose</groupId>
    <artifactId>aspose-tasks</artifactId>
    <version>22.10</version>
</dependency>

Convert XER to PDF in Java

Follow these steps to convert a Primavera P6 XER file to PDF:

  1. Load the XER file with the Project class.
  2. Create a PdfSaveOptions instance.
  3. Set options like PageSize.
  4. Call save() with the PDF path and the PdfSaveOptions.

The sample code below demonstrates how to convert Primavera XER to PDF in Java.

Convert Primavera P6 XER to PDF using Java

Convert Primavera P6 XER to PDF using Java.

Get a Free License

You can obtain a complimentary temporary license to test the library without any evaluation restrictions.

XER to PDF Converter Online

You may also convert XER files to PDF format using this free XER to PDF converter online tool, developed using the above API.

Image

Convert XER to PDF – Free Learning Resources

Besides converting XER to PDF programmatically in Java, explore other library features using the following resources:

Conclusion

This post showed how to convert an XER file to PDF in Java. Follow the steps to build your own XER‑to‑PDF converter. We hope this helps. For questions, visit our free support forum.

See Also