Solved

Text to PDF Conversion using Spring or iText API

Posted on 2006-11-13
4
2,047 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
4 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 250 total points
ID: 17934114
itext won't do that that 4u
try pdfbox

http://www.pdfbox.org/
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
thymeleaf natural templating vs JSP 2 109
varialbe initialization 11 35
spring jars download 1 29
Java syntax, or is it Selenium 6 18
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

825 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