Convert Microsoft Publisher TO PDF

Download Developer API Guide

PublisherToPdf Object Description

This object is used to convert Microsoft Publisher to pdf. PublisherToPdf only works with Microsoft Publisher 2007 or higher version. Only Publisher 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
PublisherToPdf publisherToPdf = new PublisherToPdf();
// Covert to Pdf
publisherToPdf.convert("C:\\Users\\Desktop\\input.pub", " 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
PublisherToPdf publisherToPdf = new PublisherToPdf();
// Set the ConversionTimeOut Properties
publisherToPdf.setConversionTimeOut(1);
// Covert to Pdf
publisherToPdf.convert("C:\\Users\\Desktop\\input.pub", " C:\\Users\\Desktop\\output.pdf");