Convert PowerPoint to PDF Notes
Contents
[
Hide
]
Convert PowerPoint to PDF with Custom Slide Size
The following example shows how to convert a presentation to a PDF notes document with custom slide size. Where each inch equals 72.
// Instantiate a Presentation object that represents a presentation file
var presIn = new aspose.slides.Presentation("SelectedSlides.pptx");
var presOut = new aspose.slides.Presentation();
try {
var slide = presIn.getSlides().get_Item(0);
presOut.getSlides().insertClone(0, slide);
// Setting Slide Type and Size
presOut.getSlideSize().setSize(612.0, 792.0, aspose.slides.SlideSizeScaleType.EnsureFit);
var pdfOptions = new aspose.slides.PdfOptions();
pdfOptions.getNotesCommentsLayouting().setNotesPosition(aspose.slides.NotesPositions.BottomFull);
presOut.save("PDF-SelectedSlide.pdf", aspose.slides.SaveFormat.Pdf, pdfOptions);
} finally {
if (presIn != null) {
presIn.dispose();
}
if (presOut != null) {
presOut.dispose();
}
}
Convert PowerPoint to PDF in Notes Slide View
The Save method exposed by Presentation class can be used to convert the whole presentation in Notes Slide view to PDF. The code snippets below update the sample presentation to PDF in Notes Slide view.
var pres = new aspose.slides.Presentation("presentation.pptx");
try {
var pdfOptions = new aspose.slides.PdfOptions();
pdfOptions.getNotesCommentsLayouting().setNotesPosition(aspose.slides.NotesPositions.BottomFull);
pres.save(resourcesOutputPath + "PDF-Notes.pdf", aspose.slides.SaveFormat.Pdf, pdfOptions);
} finally {
if (pres != null) {
pres.dispose();
}
}
You may to want to check out Aspose PowerPoint to PDF or PPT to PDF converter.