Noob question here...I need to use an advanced PDF...
# suitescript
b
Noob question here...I need to use an advanced PDF template to print off results from a saved search. However the search I am trying to print cannot be built with a single search, I need a developer to create a script which creates a page combining the results of the searches. Can I print an advanced PDF from that developer-created search results screen?
s
Would need to be a Suitelet script to run the searches, compile the results, and render the PDF.
e
Yes you can script the searches and combine them into a single JSON object and use the JSON object as your datasource.
👍🏼 1
b
Thanks @suitedev. So it would not be an advanced PDF template that generated the PDF, it would be the script?
s
You can use an Advanced PDF Template to render the PDF, but as Eric said, you would first need to create the JSON Object and provide it as a data source.. That is the most direct path.
b
Thanks to you both!
e
Yes just think of it as a mail merge. You have a template and you have the data that will be merged with the template substituting the data with the placeholders on the template.