I believe the path for the pdf file is passed to the function RunReportAsPDF in the variable prmPdfName. Basically the principle is the same as in my earlier version of the code, however the registry key differs with different versions of Acrobat.