File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes display output as pdf Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "display output as pdf" Watch "display output as pdf" New topic
Author

display output as pdf

Jason Mill
Greenhorn

Joined: Jul 29, 2003
Posts: 6
I have a string of data which is the contents of a pdf, ( as I cannot read the pdf file directly from the web server).
How do I output the data so that the browser displays the pdf as pdf and not as the contents of the pdf.
Any help appreciated.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60053
    
  65

I believe this has been covered a few times. Use the search capability and you should find your answer.
hth,
bear


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Scott Duncan
Ranch Hand

Joined: Nov 01, 2002
Posts: 363
So essentially your question is how to generate a pdf file from a String of data and display? In the past I have used JClass to generate pdf files. Also, I believe you could use XSLT to transform data into a PDF.


No more rhymes! I mean it!<br /> <br />Does anybody want a peanut?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60053
    
  65

I gather from the wording in his question that the data is already in PDF format. He just needs to set the content-type and disposition accordingly. I don't remember the exact settings off the top of my head. Hence, the search suggestion.
hth,
bear
[ August 05, 2003: Message edited by: Bear Bibeault ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: display output as pdf
 
Similar Threads
iReport Question
how to save a jsp page as pdf in java?
Display pdf file contents through jsp
jsp to pdf
how to save a webpage with struts code as pdf in java?