You can do something different just trying to simp...
# suitescript
a
You can do something different just trying to simplify and make it work... you can save the PDF to the file cabinet and write back on the reponse the URL... then you client script go to that URL...