https://blog.aspose.com/words/convert-text-to-pdf-using-java/
Convert Text Files to PDF in Java