Link to home
Start Free TrialLog in
Avatar of AmolDesai23
AmolDesai23

asked on

Text to PDF Conversion using Spring or iText API

Hello Experts,

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.

-AD
Avatar of zzynx
zzynx
Flag of Belgium image

Well, the iText example pages have a lot of examples on how to format it according to your needs.
See @ http://itextdocs.lowagie.com/tutorial/
You'll have to set those tabs and page breaks yourself.
ASKER CERTIFIED SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial