Thanks Ankur Bawiskar. It worked for me. 

Can we also use similar approach to combine two pdf files. please advice or any other solution in servicenow.