PDF download through the Web Interface
Posted: Fri Aug 07, 2009 12:25 pm
by skipton >> Thu, 18 Sep 2003 19:50:05 GMT
A requirement for our Jade 6 web interface is to allow a user to download or view pre-generated PDF documents from their browser eg Bank Statements. These documents need to be session secure, such that we don't want to store them on the webserver (and use links), rather we were hoping to stream the file back as we do for the generated HTML pages.
How do we achieve this using Jade? Is it a case of overriding the standard response message and manipulating the response header to let the browser know it's a PDF?
Any help much appreciated.
John
www.jbssolutions.co.uk
A requirement for our Jade 6 web interface is to allow a user to download or view pre-generated PDF documents from their browser eg Bank Statements. These documents need to be session secure, such that we don't want to store them on the webserver (and use links), rather we were hoping to stream the file back as we do for the generated HTML pages.
How do we achieve this using Jade? Is it a case of overriding the standard response message and manipulating the response header to let the browser know it's a PDF?
Any help much appreciated.
John
www.jbssolutions.co.uk