• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

display pdf

 
Stan F Smith
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 543
4
Java Netbeans IDE Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Stan F Smith
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks,

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

Thanks again
 
Paul Clapham
Sheriff
Posts: 21322
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Of course. The HTML doesn't constrain the way you write your servlet code in any way.
 
Stan F Smith
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 21322
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic