Convert smartform as PDF from ABAP Webdynpro
I want to convert smartform as pdf from ABAP webdynpro.
Flow: SmartForm-->Generating Function Module -->Getting Output Data --> Converting OTF to PDF --> Open/Save PDF file in ABAP webdynpro.
What are the sequence of function modules to be used for this?
Is there any other way to convert smartform as pdf from ABAP webdynpro?
plz give me the flow and FM'details clearly in detail.