Microsoft Project (MPP) files contain detailed scheduling and resource planning data, but PDF is a universal format preferred for sharing and presenting project information. We sometime have a requirement to convert MPP to PDF format so that we can share project timelines with clients or teams, printing Gantt charts and schedules, prevent unauthorized modification, archive project documentation or even, view project data across all platforms.
In this article, we are going to explore the details on how we can quickly and reliably convert MPP to PDF online without requiring Microsoft Project installed.
- Project Management API
- Convert MPP File to PDF in C#
- MS Project to PDF using cURL
- Try Online MPP to PDF Converter
Project Management API
Aspose.Tasks Cloud SDK for .NET is a lightweight solution developed as per REST architecture and enables you to create as well as manipulate Microsoft Project or Primavera P6 formats. Fetch the documents from cloud storage or upload from local drive and process them within your .NET applications (without installing any third-party software).
Install MPP to PDF Conversion API
The first step is to add the SDK reference in your .NET solution. Please execute the following command:
dotnet add package Aspose.Tasks-Cloud --version 25.7.0
You also need to obtain your personalized client credentials for Aspose Cloud Dashboard.
Convert MPP File to PDF in C# .NET
Below is a complete example showing how to upload an MPP file from local disk and convert it to PDF.
Step 1 — Initialize the API:
TasksApi tasksApi = new TasksApi(clientSecret, clientID);
Step 2 — Upload MPP File from Local Drive:
using var stream = File.OpenRead("Commercial_construction.mpp");
tasksApi.UploadFile(new Requests.PostCreateRequest("input.mpp", stream));
Step 3 — Specify MPP to PDF Conversion Settings
GetTaskDocumentWithFormatRequest formatRequest = new GetTaskDocumentWithFormatRequest()
{
Format = ProjectFileFormat.Pdf,
Name = inputFile
ReturnAsZipArchive = false
};
Step 4 — Perform MPP to PDF Conversion
var output = tasksApi.GetTaskDocumentWithFormat(formatRequest);
MS Project to PDF using cURL
As an alternative approach, you may consider using cURL commands to implement the conversion process. This approach allows you to seamlessly integrate this feature into your applications or workflows. It also empowers you to automate the MPP to XML conversion, making it a practical choice if you are looking to handle large volumes of project data efficiently.
Step 1 — Get Access Token:
curl -v "https://api.aspose.cloud/connect/token" \
-X POST \
-d "grant_type=client_credentials&client_id=XXXXXX-XXXXXXX&client_secret=XXXXXXXX" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Accept: application/json"
Step 2 — Convert to PDF
curl -v -X GET "https://api.aspose.cloud/v3.0/tasks/{sourceMPP}/format?format=pdf" \
-H "accept: multipart/form-data" \
-H "authorization: Bearer <accessToken>" \
-o {resultantFile}
Try Online MPP to PDF Converter
If you are interested in trying to MS Project to PDF conversion approach directly within a web browser, without writing a single line of code or even without cURL commands, then try using our free online MPP to PDF Converter App. It’s developed on top of Aspose.Tasks Cloud and allows you to experience MS Project file to PDF conversion online.
Free online MPP to PDF Converter.
Conclusion
In this article, you learned how to convert MPP files to PDF using Aspose.Tasks Cloud SDK for .NET. It eliminates the need for Microsoft Project and offers fast, secure, and scalable document conversion. Therefore, with simple API calls, you can:
- Upload local MPP files
- Convert cloud-stored files
- Generate high-quality PDF outputs
- Build automated project-processing workflows
Frequently Asked Questions (FAQs)
Q1: Can I convert large MPP files?
Yes. Aspose.Tasks Cloud supports conversion of large MS Project files.
Q2: Do I need Microsoft Project installed?
No. The conversion is processed fully through the cloud API.
Q3: Can I convert an MPP already available in cloud storage?
Yes. Just provide the FilePath of the existing MPP file.
Q4: Do I need a license for testing?
No, you can sign up for a free trial account to test all conversion features with limited usage.