Aspose.Slides.Examples.CSharp.Presentations.Conversion.ConvertSlidesToPdfNotes.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 + "SelectedSlides.pptx");
            Presentation auxPresentation = new Presentation();

            ISlide slide = presentation.Slides[0];

            auxPresentation.Slides.InsertClone(0, slide);

            // Setting Slide Type and Size 
            auxPresentation.SlideSize.Type = SlideSizeType.Custom;
            auxPresentation.SlideSize.Size = new SizeF(612F, 792F);

            auxPresentation.Save(dataDir + "PDFnotes_out.pdf", SaveFormat.PdfNotes);
        }
    }
ConvertSlidesToPdfNotes