Aspose.Slides.Examples.CSharp.Presentations.Conversion.ConvertToPDF.Run C# (CSharp) Method

Run() public static method

public static Run ( ) : void
return void
        public static void Run()
        {
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_Conversion();

            // Instantiate a Presentation object that represents a presentation file
            Presentation presentation = new Presentation(dataDir + "ConvertToPDF.pptx");
            
            // Save the presentation to PDF with default options
            presentation.Save(dataDir + "output_out.pdf", SaveFormat.Pdf);
                        
        }
    }
ConvertToPDF