Results 1 to 4 of 4

Thread: PDF in a JSP

  1. #1
    Join Date
    Jun 2005
    Posts
    2

    Default PDF in a JSP

    Hi,
    I have a system that generates an outputstream of a pdf file.
    I need to display the pdf file in jsp using the spring framework.

    Any pointers

    eg. I have my company invoice that is generated as a pdf file that needs to be displayed.

    Thanks

  2. #2
    Join Date
    Aug 2004
    Location
    Melbourne, Australia
    Posts
    1,104

    Default

    Take a look at the countries sample in the distribution.

  3. #3
    Join Date
    Jun 2005
    Posts
    2

    Default

    I checked the example, that is a class CountriesPdfView extends AbstractPdfView that does the pdf conversion for me, in my case i already have a pdf file that I just need to display

  4. #4
    Join Date
    Aug 2004
    Location
    Melbourne, Australia
    Posts
    1,104

    Default

    in my case i already have a pdf file that I just need to display
    You can just place it on the web server and let it be served up. If that's not possible, or you need a servlet to do manual security checks or similar, you can just open it up in the contoller, do whatever processing, and stream it out to the client.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •