This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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: 2543
    
  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
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2543
    
  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
Rancher

Joined: Mar 22, 2005
Posts: 42958
    
  73
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

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

Joined: Mar 22, 2005
Posts: 42958
    
  73
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
 
Have you checked out Aspose?
 
subject: Base16Format to pdf in jsp?
 
It's not a secret anymore!