Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need help Urgently

 
Sridhar Garimella
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Corbin Dallas
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
pdf? I think you will need to suscribe or buy the adobe acrobat reader that converts to that format.
 
Rupali Desai
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
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
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 "abcd.ps"
* In Unix prompt type: "% ps2pdf abcd.ps abcd.pdf"
* This will work
OR the easiest solutions is to use Adobe Acrobat - you will
need buy it
 
Sridhar Garimella
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Friends,
Thank you very much for your responses. I am working in those lines.
Regards
Sreedhar Garimella
 
Carl Trusiak
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually I think you might find the help you need in the Java in General (Intermediate) forum, I'll move it there.
 
Carl Trusiak
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic