Convert Microsoft powerpoint TO PDF

Download Developer API Guide

PptToPdf Object Description

This object is used to convert Microsoft PowerPoint to pdf. PptToPdf only works with Microsoft PowerPoint 2007 or higher version. Only PowerPoint 2007 requires the free "Save as PDF or XPS" add-in for Office 2007 to be installed. This add-in is available from Microsoft.

// Create an Object
PptToPdf pptToPdf = new PptToPdf();
// Covert to Pdf
pptToPdf.convert("C:\\Users\\Desktop\\input.pptx","C:\\Users\\Desktop\\output.pdf");


Properties


ConversionTimeOut Property

Set the file coversion time out property. Default is 5 min.

Type

Int (minute)

Usage

// Create an Object
PptToPdf pptToPdf = new PptToPdf();
// Set the ConversionTimeOut Properties
pptToPdf.setConversionTimeOut(1);
// Covert to Pdf
pptToPdf.convert("C:\\Users\\Desktop\\input.pptx","C:\\Users\\Desktop\\output.pdf");