Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save aspose-com-gists/bccd1b214896e9691893914d72fe49df to your computer and use it in GitHub Desktop.
Save aspose-com-gists/bccd1b214896e9691893914d72fe49df to your computer and use it in GitHub Desktop.
// Load the MPP file
Project project = new Project("SourceDirectory\\Tasks\\project_test.mpp");
// Create an instance of the MemoryStream class
MemoryStream stream = new MemoryStream();
// Save the project as PDF to the MemoryStream
project.Save(stream, SaveFileFormat.PDF);
// Load the PDF from the MemoryStream
Document document = new Document(stream);
// Save the PDF as DOCX
document.Save("OutputDirectory\\SaveProjectAsDocx_out.docx", SaveFormat.DocX);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment