RE: Is there a way to combine two PDF’s into 1 document?

We have a client who would like the ability to print multiple PDF documents for related transactions in 1 “combined PDF” document. The use case here is wanting to print all Bills of Materials for related Work Orders from the Sales Order record.

While we could definitely go down the route of creating a Suitelet and a custom template to iterate through the Sales Order lines, get the work order internal ID’s, create a saved search for all work order details, create a JSON object and pass that into a custom template as the data source, we wanted to simplify things and break up the work! So our plan was to utilize the native work order PDF, in hopes that via script, we can render each Work Order template and “merge” them somehow.

Has anyone done this? Is there a SuiteScript API or JavaScript library that can handle this? Poked around on SuiteAnswers and Google already and didn’t have much luck.

 

Thank you in advance!

vfalk Beginner Asked on October 30, 2020 in How To's.
Add Comment
1 Answers

Use N/render in combination with the pdfset element.

Advanced Answered on October 30, 2020.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.