Ramesh Kumar
,
Ranch Hand
Apr 09, 2010 01:37:26
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
Apr 09, 2010 01:41:24
anybody ??
Jan Cumps
,
Bartender
staff
Apr 09, 2010 01:44:57
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
staff
Apr 09, 2010 01:46:31
Ramesh Kumar wrote: anybody ??
How rude! after 4 minutes .
Ramesh Kumar
,
Ranch Hand
Apr 09, 2010 02:00:42
sorry Jan . i will change my way ,any solution in servlet ?
Ulf Dittmer
,
Rancher
Apr 09, 2010 02:09:50
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
Apr 09, 2010 03:31:21
sorry its base64foramatted String .
using it .how can i generate the pdf file .??
Ulf Dittmer
,
Rancher
Apr 09, 2010 03:36:30
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
Apr 09, 2010 06:35:02
thank you Ulf Dittmer
Yes, my master! Here is the tiny ad you asked for:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com