i wrote a custom module that creates a PDF, saves ...
# suitescript
r
i wrote a custom module that creates a PDF, saves it in the file cabinet and returns the PDF document. i have a user event script that creates a print button that receives the PDF and writes it to the browser window. now i'm working on a suitelet that does batch processing of invoices. that script need to send an email and attach the PDF for each invoice that's selected. so my custom module does all the work of creating an invoice, using my advanced pdf template, etc., but it's not going to give me a fileID or fileObject, both of which (i believe) i need for sending emails and attaching PDF's to an email.