I need to convert existing text file into PDF programatically. I'm using basic iText APIs to do this task. However; the converted PDF looses all the formatting applied in a text file (such as indenting, page breaks etc).
Is there any example or solution so that I get exact same file converted into PDF along with the formatting? Thanks for your help.