I want to generate a dynamic pdf with javascript (node or deno).
I have variable data on request coming into API.
The part I can't figure out is,
For example, an array with 20 objects came from the API. I will print these values to pdf with certain shaping. But since the data coming from the API will be variable, I need to dynamically print the incoming data.
For example, another object should come just below the first object I have printed. If the object's fields exceed one page, the next page should be passed.
In accordance with any data that may come from the API.
I searched here in detail, but could not find a clear solution. (https://pdf-lib.js.org/docs/api/)
I came across a similar question in the past (Create PDF with multiple pages) But I think the situation here is a little different.
I would be very grateful if someone could enlighten me on this.