Re: PDF and appendToResponse

2007-02-27 Thread Kieran Kelleher
Just return it like a download file with content disposition set to inline or sth like that Here is a WOComponent I use for generic downloading. For PDF just set the correct mime type and content disposition. The client browser will ultimately decide what to do with it anyway. HTH, Kieran

Re: PDF and appendToResponse

2007-02-27 Thread Jacky Gagnon
Hi Gino, I never used PD4ML but you probably need these 2 lines : response.setContent(yourNSData); response.setHeader("application/pdf", "Content-Type"); On 07-02-27, at 11:56, Gino Pacitti wrote: Hi All I am using the PD4ML packages and can easily save PDF's to disk - but i was wondering i

PDF and appendToResponse

2007-02-27 Thread Gino Pacitti
Hi All I am using the PD4ML packages and can easily save PDF's to disk - but i was wondering if anyone had used it a successfully was able to display the PDF to browser? I have this snippet: try{ PD4ML html = new PD4ML(); StringReader sr = new StringReader