Open url

Open url

Hi,

I created two pages , want to take print and pdf  in a single custom action click.
Now, after clicking custom action, a stateless form will be opened and there is a drop down to 
list the pages which need to be printed and allow user select page and click "generate " button ,
then page will display in new window and the page itself have a button to"print" and "pdf".
these buttons are options given by creator for pages 

Now,I want to generate all pages into pdf format and print-out in a single custom action click.

Is it possible?
Open url task for two pages in a single custom action click  is not working?

Kindly, help me.