aspose file tools*
The moose likes JSP and the fly likes display pdf Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "display pdf" Watch "display pdf" New topic
Author

display pdf

Stan F Smith
Greenhorn

Joined: Jun 28, 2011
Posts: 20
Hello,

I trying to disply pdf from website using a ByteArrayOutputStream. The pdf does work as it can test with:



I would like to replace the above code to show pdf, in acrobat so that the ability to save and print exist.
Can someone please assit me with this.

Please excuse english, it is as second language.

Thank you
Dieter Quickfend
Bartender

Joined: Aug 06, 2010
Posts: 543
    
    4



Oracle Certified Professional: Java SE 6 Programmer && Oracle Certified Expert: (JEE 6 Web Component Developer && JEE 6 EJB Developer)
Stan F Smith
Greenhorn

Joined: Jun 28, 2011
Posts: 20
Thanks,

But will that allow the pdf to b dynamic? I do not want to have to save the pdf?

Thanks again
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18570
    
    8

Of course. The HTML doesn't constrain the way you write your servlet code in any way.
Stan F Smith
Greenhorn

Joined: Jun 28, 2011
Posts: 20
Thanks again for the reply. However I ask the quetion because in the ex you gave it has

which would point to a saved file I assume?

Sorry, but I do not really understand how your example would work.

with


how would i change the FileOutputStream to a web page?

Thanks again
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18570
    
    8

bob uncle wrote:how would i change the FileOutputStream to a web page?


In the servlet where this code is located, you would simply write to the response's output stream.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: display pdf