Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Base16Format to pdf in jsp?

 
Ramesh Kumar
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all

i have an base16formated string .which i wanted to print it as a pdf in jsp.is it possible ??

or give your valuable ideas to me !!!


Thank you
 
Ramesh Kumar
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
anybody ??
 
Jan Cumps
Bartender
Posts: 2584
11
C++ Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSP are not designed to produce binary output.
If you want to produce non-text output (e.g.: PDF), you can use servlets.

Regards, Jan
 
Jan Cumps
Bartender
Posts: 2584
11
C++ Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ramesh Kumar wrote:anybody ??
How rude! after 4 minutes.
 
Ramesh Kumar
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry Jan . i will change my way ,any solution in servlet ?
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you asking how to create a PDF? If so, check out the iText library.

I don't understand what "base16formated string" has to do with it, nor, actually, what you mean by that, so I can't speak to that.
 
Ramesh Kumar
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry its base64foramatted String .
using it .how can i generate the pdf file .??
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So the text you want to put in the PDF is base-64 encoded? You can decode that using any of the publicly available decoder classes, like the one in the Apache Commons Codec library.

There are many tutorials out there on the web on how to create a PDF using iText, including one right here in the JavaRanch FAQ.
 
Ramesh Kumar
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you Ulf Dittmer
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic