aspose file tools*
The moose likes Other Open Source Projects and the fly likes Base16Format to pdf in jsp? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Base16Format to pdf in jsp?" Watch "Base16Format to pdf in jsp?" New topic
Author

Base16Format to pdf in jsp?

Ramesh Kumar
Ranch Hand

Joined: Oct 29, 2008
Posts: 42
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


SCJP,OCA
Ramesh Kumar
Ranch Hand

Joined: Oct 29, 2008
Posts: 42
anybody ??
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2510
    
  10

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


OCUP UML fundamental and ITIL foundation
youtube channel
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2510
    
  10

Ramesh Kumar wrote:anybody ??
How rude! after 4 minutes.
Ramesh Kumar
Ranch Hand

Joined: Oct 29, 2008
Posts: 42
sorry Jan . i will change my way ,any solution in servlet ?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42602
    
  65
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.


Ping & DNS - my free Android networking tools app
Ramesh Kumar
Ranch Hand

Joined: Oct 29, 2008
Posts: 42
sorry its base64foramatted String .
using it .how can i generate the pdf file .??
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42602
    
  65
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

Joined: Oct 29, 2008
Posts: 42
thank you Ulf Dittmer
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Base16Format to pdf in jsp?