Solved

Text to PDF Conversion using Spring or iText API

Posted on 2006-11-13
4
2,044 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
Comment Utility
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
Comment Utility
itext won't do that that 4u
try pdfbox

http://www.pdfbox.org/
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
json format text only 4 64
firstChar challenge 13 82
solarwind tftp server 2 30
Securing Jmx Console and web console 2 45
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…

763 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now