This sample java program uses jPDFWriter to open a text file and create a PDF file from the text contained in the text file. It takes care of wrapping text into lines and of creating new pages as needed (pagination). // Page dimensions and margins, in inches float pageWidth = 8.5f; float pageHeight = 11f; […]