Convert Primavera XER to PDF using Python

Oracle Primavera P6 uses the XER file format for project scheduling and management. It is a text file, and it can be effortlessly opened by any text editor at your disposal. Converting XER to PDF allows sharing and reviewing Primavera project data and information across various devices. In this blog post, we will learn how to easily convert an XER file to a PDF in Python.

This article covers the following topics:

Python XER to PDF Converter API

We will use Aspose.Tasks for Python API to convert a Primavera XER file to a PDF file. It allows working with project management files in Python without needing Microsoft Project. It enables developers to read and write MPP files, create, manipulate, and convert projects into other formats.

In order to install Aspose.Tasks for Python in your project, please either download the package or install it from PyPI using the following pip command in the console:

pip install aspose-tasks

Convert XER to PDF in Python

We can easily convert the Primavera P6 project from the XER file into a PDF. Just follow these simple steps:

  1. Load the XER file using the Project class.
  2. Call the save() method. It takes the output PDF file path and the SaveFileFormat as arguments.

The following sample code shows how to convert XER to PDF in Python.

Convert Primavera P6 XER to PDF in Python

Convert Primavera P6 XER to PDF in Python.

Customize XER to PDF Conversion using Python

Similarly, we can customize the conversion of XER to PDF by following the steps below:

  1. Load the XER file using the Project class.
  2. Create an instance of the PdfSaveOptions class.
  3. After that, define save options such as page_size, etc.
  4. Finally, call the save() method. It takes the output PDF file path and the PdfSaveOptions as arguments.

The following sample code shows how to convert XER to PDF with customized settings in Python.

Get a Free License

You can get a free temporary license to try the library without evaluation limitations.

Convert XER to PDF Online

You may also convert your Primavera XER files to PDF format online using this free XER to PDF converter tool. It is accessible from any browser and device, without the need for plugins, software, or subscriptions.

XER to PDF – Free Resources

Besides converting XER to PDF in Python, unlock the full potential of the API’s extensive features and capabilities. Utilize the resources below to explore its functionalities to the fullest.

Conclusion

In this post, we explored how to convert XER to PDF in Python. By leveraging Aspose.Tasks for Python, we demonstrated how to load a Primavera XER file and convert it into a PDF. With the steps outlined in this article, you can easily implement this conversion process, ensuring that your project schedules are always ready for presentation, archiving, or simple viewing across diverse platforms.

In case of any ambiguity, please feel free to contact us at our free support forum.

See Also