• Post Reply Bookmark Topic Watch Topic
  • New Topic

Creating PDF through servlet  RSS feed

 
Neeba Rebbaca
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want to generate a pdf from xml through servlet.can anyone give me idea how to do that...Is there any sample program avaliable where i can get some idea.
 
kranthi chamarthi
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can parse the xml ,get the data and then you can use the itext free api for pdf generation web page. You can also get a lot of examples from net.
 
Neeba Rebbaca
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it not possible to create pdf without using itext?
 
Rob Spoor
Sheriff
Posts: 21135
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use another third party library of course. Otherwise, you would have to know the structure of PDF documents internal workings, and basically write the PDF document from scratch yourself.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 37507
552
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Neeba,
iText is pretty standard. Why don't you want to use it? Stating the reason may help people suggest something that does meet your needs.
 
Muhammad Saifuddin
Ranch Hand
Posts: 1325
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I didn't try iText yet, but Jasper Report.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!