I need to open a PDF in the client. The PDF its generated in my Controller (i have no problem with that) and i need to show that PDF inside a layout (not a window).
Asked
Active
Viewed 277 times
1 Answers
1
You could show the pdf in a SmartGWT component using an IFrame.
See this sample and this forum.

mam10eks
- 986
- 7
- 16
-
It worked, but i needed this in my server controller; resp.setContentType("application/pdf"); resp.setContentLength(ficheroPDF.length); resp.setHeader("Content-Disposition", "inline; filename=stats.pdf"); – Daniel Faro Jun 28 '16 at 06:13