HTML to TXT conversion via Java sample code. Programmers can use this example code to export HTML to TXT within any Web or Desktop Java based application....TextDevice renderer = new TextDevice (); renderer . process (...images, hyperlinks, custom fonts - and more - into PDF documents...