Thanks Asif. It is again the HTMLToPDF activity which accepts HTMLStream as input. It doesn't work if I pass the section name or harness name as value for HTMLStream parameter. Could you please suggest how to convert section/harness to the format accepted by HTMLToPDF activity.
I just tried using the activity 'pxCreatePDF' by replacing the 'pyAttachPDF' in it with 'pyViewPDF'. Name of the section and PDF file name are being passed as parameters. This time I am not getting any errors and I can see value as below in Parameter page each time I execute it. I am not sure what does that value refer to but PDF file is not getting generated still.