Hi Andrea,

Use window.location.href=<path2yourpdffile> in your qx application to
open PDF document in Adobe reader outside your qx app . And you'll need
the following http headers in PHP.

header('Content-type: application/x-pdf');
header('Content-Disposition: attachment; filename=' . $fileName . '.pdf');

// IE6 fix
header('Content-transfer-encoding: 8bit');
header('Expires: 0');
header('Pragma: cache');
header('Cache-Control: private');

---
Ian Horst

On 12/10/10 13:21, A. Weber (Penplan) wrote:
> 
> With PHP, we generate a PDF document on the server (using fpdf.php).  This
> document can be saved as a file locally on the server or passed to the
> client with "Content-Type: application/pdf" or "Content-Type:
> application/x-download".
> 
> What is the best way to display the PDF document in Qooxdoo or allow the
> user to download it (possibly without having to save the file on the server
> and passing the URL to the client) ?
>    - qx.io.remote.Request ?
>    - qx.io.remote.transport.Iframe ?
>    - qx.ui.embed.iFrame ?
> 
> We tried with to solve this issue with qx.io.remote.Rpc, but this doesn't
> seem to be the right way.
> 
> Any pointer to the right direction (or a code snippet) is greatly
> appreciated!
> 
> Regards,
> 
> Andrea

------------------------------------------------------------------------------
Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL,
new data types, scalar functions, improved concurrency, built-in packages, 
OCI, SQL*Plus, data movement tools, best practices and more.
http://p.sf.net/sfu/oracle-sfdev2dev 
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to