The below is a program to create a PDF text file in Java language. This program reads a line of text from user and the text will be written to a pdf file. The pdf file name also be taken from the user input. This is a console java program. Click here to know more about the project. Visit Projects page of learningmela.com to download more projects.