This java program will convert a Word document to a PDF document using Qoppa’s library jOfficeConvert.

// Load the document
WordDocument wdoc = new WordDocument ("input.doc");
 
// Save the document as a PDF file
wdoc.saveAsPDF("output.pdf");