Hi, my name is Yuk Sovandara. I am an IT officer and lecturer. In my free time, I like to write something about programming. In 2011, i created a website that provides free tutorials, exercises, and tips of the most popular programming and web scripting languages.
Seven months ago i created the blog providing Java tutorials and example programs. Recently, i also created a blog called for people who want to become Android developers by learning from example programs. To contact me, please email yuk.dara@gmail.com. You also can connect with me on,.
Converting a text file to a pdf file is straightforward. Firstly, you will have a FileReader object to read the source text file. To read line by line from the text file, you will BufferedReader class. This class accepts the FileReader as its argument.
To output the text to the Microsoft Word file, you need to create a Microsoft Word document object by using the XWPFDocument class. Once you have the Microsoft Word document object, you can create paragraphs in the document by using the createParagraph method.
The Run objects of the paragraph is used to store text. You can apply styles to the text by using its methods (setFontFamily, setFontSize.). After you prepare the Microsoft Word document already, to write it to the output file, use its write(FileOutputStream fos) method. You will need a FileOutputStream object to point to the output file.
Hi, my name is Yuk Sovandara. I am an IT officer and lecturer. In my free time, I like to write something about programming. In 2011, i created a website that provides free tutorials, exercises, and tips of the most popular programming and web scripting languages.
Seven months ago i created the blog providing Java tutorials and example programs. Recently, i also created a blog called for people who want to become Android developers by learning from example programs. To contact me, please email yuk.dara@gmail.com.
You also can connect with me on,.