How to Merge PDF to MPP Using C++

In order to Merge PDF to MPP, we’ll use

Aspose.Tasks for C++

API which is a feature-rich, powerful and easy to use document manipulation and conversion API for C++ platform. You can download its latest version directly, just open

NuGet

package manager, search for Aspose.Tasks.Cpp and install. You may also use the following command from the Package Manager Console.

Package Manager Console Command


PM> Install-Package Aspose.Tasks.Cpp

Steps to Merge PDF to MPP via C++

Developers can easily load & merge PDF files to MPP in just a few lines of code.

  1. Create new instance of Project class
  2. Read each PDF file as an array of bytes
  3. Create instances of Aspose.Tasks.OleObject class per each array
  4. Fill OleObjects by arrays and add this OleObjects to the “OleObjects” collection of Project instance
  5. Call the Project.Save method with output file path & SaveFileFormat.PDF as parameters

System Requirements

Before running the merging example code, make sure that you have the following prerequisites.

  • Microsoft Windows or a compatible OS with C++ Runtime Environment for Windows 32 bit, Windows 64 bit and Linux 64 bit.
  • Aspose.Tasks for C++ DLL referenced in your project.
 

This sample code shows PDF to MPP C++ Merging

 
  • Free App to Merge PDF to MPP

    Other Supported Merging Formats

    You can also merge PDF into other file formats including few listed below.

    PDF TO MPP (Microsoft Project Data File)
    PDF TO MS PROJECT (Microsoft Project Data File)