I actually created a custom module so it's include...
# advancedpdf
r
I actually created a custom module so it's included both from the print button and a batch processing suitelet->scheduled script