File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Need help Urgently Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Need help Urgently" Watch "Need help Urgently" New topic

Need help Urgently

Sridhar Garimella
Ranch Hand

Joined: Feb 18, 2000
Posts: 73
Hello Friends,
I know this is not the place to post my question. But i have seen lot of good tech people here thats why i am posting.
I have one question for you.At present we are generating some offline reports and sending those as txt file attachments in the mail. My task is i have to send them as PDF attachments instead of TXT file. That means i have to convert txt file to pdf file.
How to do this using either java or any other language??
thanks in advance
sreedhar garimella
Note: Pls bare with me for this inconvenience

Thanks,<br />Sridhar.
Corbin Dallas
Ranch Hand

Joined: Oct 27, 2000
Posts: 32
pdf? I think you will need to suscribe or buy the adobe acrobat reader that converts to that format.
Rupali Desai
Ranch Hand

Joined: May 29, 2001
Posts: 42
We used a tool called Jreports which used to collect the information from a database and conver it into pdf,html, text or whatever format we desired.I dont know wheter it will convert from text to pdf.But you can check it out.
[This message has been edited by rup desai (edited October 12, 2001).]
Theresa Faulkner
Ranch Hand

Joined: Feb 21, 2001
Posts: 31
Adobe Acrobat converts scanned documents, CAD drawings, electronic files, .txt files etc. to .pdf. You'll have to buy it. I don't know if anything "free" will do it.
Adobe Reader is part of Adobe Acrobat and is a free download and lets you only read .pdf files. You can't manipulate or convert with Reader.
[This message has been edited by Theresa Faulkner (edited October 12, 2001).]
John Huang

Joined: Jan 21, 2001
Posts: 4
if your text document is not too complicated, you can try to
create a duplicate in latex, which can be converted to .PS or
.PDF with a couple of command, learn more about Latex, it is
going to help you.
john towns

Joined: Jun 15, 2001
Posts: 11
Here is an alternative solution:
* Get Unix and Netscape
* open the text file from netscape, e.g., /home/user/abcd.txt
* Click Print -> print/save as ""
* In Unix prompt type: "% ps2pdf abcd.pdf"
* This will work
OR the easiest solutions is to use Adobe Acrobat - you will
need buy it
Sridhar Garimella
Ranch Hand

Joined: Feb 18, 2000
Posts: 73
Hello Friends,
Thank you very much for your responses. I am working in those lines.
Sreedhar Garimella
Carl Trusiak

Joined: Jun 13, 2000
Posts: 3340
Actually I think you might find the help you need in the Java in General (Intermediate) forum, I'll move it there.

I Hope This Helps
Carl Trusiak, SCJP2, SCWCD
Carl Trusiak

Joined: Jun 13, 2000
Posts: 3340
There are a couple of good packages for outputing text to PDF. Probably one of the best free ones is iText If you need absolutely dirt easy with no graphics ability, then there is Etymon PJ If your company doen't like the lack of support of Open Source you can use Big Faceless

I Hope This Helps
Carl Trusiak, SCJP2
I agree. Here's the link:
subject: Need help Urgently
It's not a secret anymore!