I'm looking for a way to open a new subtab in the service console that renders an existing form as a PDF prior to saving the form and without storing the PDF in Salesforce.
I managed to work out how to open the page in a separate window using the commandlink action and target which will open the pdf in a new browser window. My request is to open the PDF as a subtab in the service console. Using the console api the page loads so I lose the data that is entered on the form.
I know that we could have the rendered page save as document or attachment and show that as a subtab. But I would be interested to see if anyone else has had a similar request where the PDF is launched based on form data.
This visualforce markup works by opening the form in a new window:
If I use the service console api and pass in the newURL parameter an empty form displays.