Use the Previewer in Lightning Flows, VisualForce, … . You can just pass in the variables and the component will show the PDF.
This component can be fully tailored by your needs and provides an easy way to show a preview in a Flow
Get the component by contacting: firstname.lastname@example.org
You can easily provide 5 parameters to the component. These parameters can be passed on to the DataSources for filtering.
Possible Types for parameters (They have to be copied as these are case sensitive):
- MultiSelect: for a list of values, these have to be separated by ‘;’ eg abc;123;yxz
Feed KeyValue DataSources into Lightning Convert Component via Flow.