You just need to change that to advanced PDF templ...
# suitescript
a
You just need to change that to advanced PDF template, make your template with the sort they need and you are done... no scripting require at all...