I'm looking at the documentation for nlapiPrintRecord() and a bit confused. I'm trying to create a pdf of a sales order using a specific pdf template, and email that to a user in a scheduled script. everything works except it's not using my template.