wood burning stoves 2.0*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 2491
    
    8

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: 2491
    
    8

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: 41035
    
  43
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: 41035
    
  43
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Base16Format to pdf in jsp?
 
Similar Threads
Acrobat reader question
chinatag SCEA5 exam simulator
Creating a file from Various chunks of different files in java
web.xml couldn't detect taglib tag anymore?
How to display jasper report in jsp