?
Solved

Text to PDF Conversion using Spring or iText API

Posted on 2006-11-13
4
Medium Priority
?
2,056 Views
Last Modified: 2012-06-21
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
0
Comment
Question by:AmolDesai23
2 Comments
 
LVL 37

Expert Comment

by:zzynx
ID: 17933147
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.
0
 
LVL 92

Accepted Solution

by:
objects earned 1000 total points
ID: 17934114
itext won't do that that 4u
try pdfbox

http://www.pdfbox.org/
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Suggested Courses
Course of the Month15 days, 7 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question