aspose file tools*
The moose likes Java in General and the fly likes How to convert  TEXT/HTML file format to PDF  format Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "How to convert  TEXT/HTML file format to PDF  format" Watch "How to convert  TEXT/HTML file format to PDF  format" New topic
Author

How to convert TEXT/HTML file format to PDF format

himanshu patel
Ranch Hand

Joined: Feb 03, 2003
Posts: 205
Hi all,
Is there any JAVA API to convert simple text/html files to PDF files?
As we do in JAVA to write text file, similarly is it possible through Java to open PDF file
and write to it.
I mean something like, open PDF file first and then write strings to it as we do for TEXT file.
Can someone help in this regard?
Any suggestion would be highly appreciated.
Himanshu


If you want to become a rich, do not work for others but make others to work for you.
Steve Carton
Greenhorn

Joined: Jan 21, 2003
Posts: 4
I haven't tried it out yet, but look at
http://www.etymon.com/pjc/
Originally posted by himanshu patel:
Hi all,
Is there any JAVA API to convert simple text/html files to PDF files?
As we do in JAVA to write text file, similarly is it possible through Java to open PDF file
and write to it.
I mean something like, open PDF file first and then write strings to it as we do for TEXT file.
Can someone help in this regard?
Any suggestion would be highly appreciated.
Himanshu
Jaunty John
Greenhorn

Joined: Jul 14, 2002
Posts: 21
You might want to go to http://sourceforge.net/ and search for "JasperReports". Or just try "PDF Documents". These are open source, i.e. FREE.
JohnB


(((o o)))<br />""--^--"" Entropy is Increasing...
himanshu patel
Ranch Hand

Joined: Feb 03, 2003
Posts: 205
Thanks to all for your valuable suggestions.
I have got what I want. I have used iText PDF library for java. It is very easy and extremely
useful.
For more info look at, http://www.lowagie.com/iText/links.html
Thanks again.
Himanshu
Robert Willems
Ranch Hand

Joined: Apr 14, 2003
Posts: 32
You can also try FOP from the Apache project
Regards,
Robert


Regards,<br />Robert Willems of Brilman<br /> <br />----------------------<br /> <br />SCJP 1.4<br />SCWCD 1.3<br />SCWCD 1.4 (beta)<br />SCDJWS 1.4 (beta)<br />SCBCD 1.3 (studying)
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to convert TEXT/HTML file format to PDF format