This week's book giveaway is in the Spring forum.
We're giving away four copies of Spring in Action (5th edition) and have Craig Walls on-line!
See this thread for details.
Win a copy of Spring in Action (5th edition) this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

How to create PDF file.  RSS feed

 
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
 
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
Boost this thread!