Skip to Content
0
Former Member
Oct 05, 2009 at 09:58 PM

smart form as PDF in pop up view

43 Views

Hi ,

I have a requirement where in to display smartform as PDF in WEB Ui on button event.

I converted the otf data and wrote in DO_INIT_CONTEXT as

response->set_header_field( name  = 'content-type'
*                              value = 'application/pdf' ).
l_pdf_len = xstrlen( l_pdf_xstring ).

   response->set_data( data   = l_pdf_xstring
                     length = l_pdf_len ).

Now the pop is displaying data as

%PDF-1.3 %���� 2 0 obj << /Type /XObject /Subtype /Image /Filter etc.......

instaed of the PDF.

May I have any Inputs,

Thanks,

sree.

Edited by: Sree on Oct 5, 2009 11:59 PM