PDFBox, JSP, and browser output

I am starting to work with PDFBox and can make PDFs that save to file or print immediately. Both of these I have run through a java class in Eclipse.

What I can’t find is how to output directly to the browser so that it opens in Acrobat (or whatever reader client is setup in the browser).

I want to run it from a jsp and have the result output to the browser, but I can’t find the class or method to do this type of output.

Thanks in advance for your help.

I’m having same kind of problem while creating Image file too. I just set the header as response.setContentType(“image/png”); and created new output stream and print the image data. I think you can also try in similar way