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);
}
}