Hello everyone, i have suitelet pdf print for invo...
# suitescript
m
Hello everyone, i have suitelet pdf print for invoice however client want to print multiple invoices how can this be achieved
w
Create a suitelet for the user to be able to select invoices to print (maybe user selects a saved search or marks invoices to be printed). This could then launch a scheduled script or map/reduce that saves all the files in the filecabinet. Then it's a matter of downloading the PDFs. Ooor Fix it so that the standard(advanced pdf) print function works as you want and then use the standard way of printing multiple invoices
b
w
Are you suggesting using a suitelet that creates a large PDF from the individual ones with TemplateRenderer.renderPdfToResponse()? <pdfset> <pdf src="filecabinet/folder/invoice1.pdf" /> <pdf src="filecabinet/folder/invoice2.pdf" /> ... </pdfset> And then serving that to the user? Any memory limits?
b
you can also use a list of records to generate pdf elements, though that usually means you need a template specific for the suitelet
no known memory limit, usually you run out of points before running out of memory
m
I want to print it into single pdf