Creating PDF from WIX content using Velo

In my case jobId was a database row ID.

Looking back at the code, if you only have text content you’d like to put into it, you can skip the job ID and update the function to be along the lines of export asymc function createBuffer(textcontent). Then you can create the buffer there.

Also, please note all of this code runs in the backend files of Velo, because it’s expecting a node.js environment in order to work. In the browser, it’s running plain JavaScript and won’t work with pdfmake