Display form post results AND generate PDF data

I have a report I need to generate from posted form data with the
optional
choice of also generating a pdf of the same report.

I am wondering if it is possible to do both, display the report in the
page
AND also generate the PDF data, within the same action, ie, user selects
all
the info they want in the report, also selecting ‘Generate PDF’, submits
form and report is displayed in the browser AND the user is also
prompted to
save the PDF that is also generated.

Chris