• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to create PDF file.

 
himanshu patel
Ranch Hand
Posts: 205
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Basically I need to write report in PDF file through servlet/JSP.
Can someone help in this regard?
Any suggestion would be highly appreciated.
Himanshu
 
Manish Sharma
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
You can use iText to ceate pdf file. it is a third party APIs. Just use some classes of iText you can make pdf files. for more details go to this URL http://www.lowagie.com/iText/links.html.
it may help you
waiting for reply
with regards,
Manish Sharma
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.
Basically I need to write report in PDF file through servlet/JSP.
Can someone help in this regard?
Any suggestion would be highly appreciated.
Himanshu
 
himanshu patel
Ranch Hand
Posts: 205
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Manish,
Thanks a lot for your quick reply. I am going through it.Hope it would serve my purpose.
Thanks again.
Himanshu
 
himanshu patel
Ranch Hand
Posts: 205
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks buddy Manish,
This is what i was looking for.It is very useful
and served my purpose.
Thanks again for your valuable help.
Himanshu
 
Manish Sharma
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Himanshu,
thats gr8 !! we have worked on pdf reports if any help then let me know .

Manish Sharma

Originally posted by himanshu patel:
Thanks buddy Manish,
This is what i was looking for.It is very useful
and served my purpose.
Thanks again for your valuable help.
Himanshu
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic