Creating PDF from WIX content using Velo

@chris-derrell Okay, just to make sure I understand… in this case, you are passing “jobid” to determine what kind of PDF to create, correct? You then return an array that contains the pieces of the generated pdf document. How do you then take that array and convert into something that can be displayed in a modal window or in some other way?

Also, the line:

docDefinition . content = docDefinition . content . concat ( array . map ( item => ({ text : item . text })));

throws a syntax editor when I copy it into the Editor; not sure if this is because of your use case or something I am not defining properly.

Sorry if I am being a bit dense – am not the most proficient JS programmer.

db