We need to write a JAVA code that will take a PDF/HTML/RTF document, preserve the format and convert it into a text file.
We have tested PDFBOX,iTEXT and other API's but the format in output file is not preserved as well as the first page of pdf is missing in the text output.