This project shows you how to use Microsoft's Graph for OpenXML (docx/pptx/xlsx) to PDF conversion from Java. (Similar code would work to convert doc or rtf to docx, or for binary .ppt or .xls to pdf ...