Last active
June 25, 2022 14:10
Revisions
-
aspose-com-kb revised this gist
Jun 25, 2022 . No changes.There are no files selected for viewing
-
aspose-com-kb created this gist
Jun 25, 2022 .There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,27 @@ using Aspose.Tasks; using Aspose.Tasks.Saving; namespace AsposeTests { class Program { static void Main(string[] args) // Main function to Convert MPP to PDF { // Load license Aspose.Tasks.License lic = new Aspose.Tasks.License(); lic.SetLicense(@"Aspose.Total.lic"); // Load the source MPP file Project project = new Project("Sample.mpp"); // Declare the PdfSaveOptions class object and set page size PdfSaveOptions pdfSaveOptions = new PdfSaveOptions(); pdfSaveOptions.PageSize = Aspose.Tasks.Visualization.PageSize.A0; // Convert MPP to PDF project.Save("output.pdf", pdfSaveOptions); System.Console.WriteLine("Done"); } } }