Loading ...
Sorry, an error occurred while loading the content.

6771Re: [XSL-FO] Streaming generated Pdf using FOPServlet- Saving Problem

Expand Messages
  • Jirka Kosek
    Sep 16, 2005
    • 0 Attachment
      vijay_singh wrote:

      > I don't know if somebody has come across this issue. We are using FOP
      > Servlet and we dynamically generated PDF on fly and stream it to the
      > browser. As we are not creating a output file, the generated pdf file
      > takes the name of the URL in the browser window. Is there anyway to
      > give a name to the file, so that when users save the generated file
      > they see the proper name of the file and not the URL in the browser.

      Try adding these HTTP headers in your HTTP response:

      Content-type: application/pdf (or application/octet-stream with some
      browsers)
      Content-disposition: filename=foo.pdf

      --
      ------------------------------------------------------------------
      Jirka Kosek e-mail: jirka@... http://www.kosek.cz
      ------------------------------------------------------------------
      Profesion�ln� �kolen� a poradenstv� v oblasti technologi� XML.
      Pod�vejte se na n�� nov� spu�t�n� web http://DocBook.cz
      Podrobn� p�ehled �kolen� http://xmlguru.cz/skoleni/
      ------------------------------------------------------------------
      Nejbli��� term�ny �kolen�: DocBook 5.-7.12. * XSL-FO 19.-20.12.
      XSLT 17.-20.10. * XML sch�mata (v�etn� RELAX NG) 7.-9.11.
      ------------------------------------------------------------------



      [Non-text portions of this message have been removed]
    • Show all 4 messages in this topic