Convert to PDF

Conversion to PDF format could be triggered by following below steps:

The following code show how to convert any document to PDF. 

Converter converter = new Converter("sample.docx");
PdfConvertOptions options = new PdfConvertOptions();
converter.convert("converted.pdf", options);