0

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).

Related: SmartGWT/GWT: Show a PDF on client side

Community
  • 1
  • 1
Daniel Faro
  • 327
  • 2
  • 12

1 Answers1

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