Here is a scenario where i have a search page with filters for users to select and display the search results. I also have a button to generate the pdf.
I have a list of account in the controller which displays the search result. I am doing the exact same thing in the page i am generating the pdf except that i am passing the selected parameters into vf page rendered as pdf and requerying it and generating the list.
These work fine.. But now i need to give an ability to remove some search result records and this needs to be generated as pdf.
I was wondering if i can share the data from the search page to VF page if i was using the same controller?