Convert MSG TO PDF

Download Developer API Guide

OutlookToPdf Object Description

This object is used to convert Microsoft Outlook document to pdf.

// Create an Object
OutlookToPdf outlookToPdf = new OutlookToPdf();
// Covert to Pdf
outlookToPdf.convert("C:\\Users\\Desktop\\input.msg", "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
OutlookToPdf outlookToPdf = new OutlookToPdf();
// Set the ConversionTimeOut Properties
outlookToPdf.setConversionTimeOut(1);
// Covert to Pdf
outlookToPdf.convert("C:\\Users\\Desktop\\input.msg", "C:\\Users\\Desktop\\output.pdf");