Footnotes - reference dynamic data sent by API request
-
Hi, is there a way to reference and add footnote dynamically? Since I'm getting data from an API call I don't know on what page the text with a footnote reference will be so I can't statically add a footnote to reference it. Is there a way of knowing where on what page the reference to the footnote is and then add the footnote there?
-
Could you please share a simple playground demo describing the problem?
https://playground.jsreport.net/
-
Something like this:
https://playground.jsreport.net/w/candy-man/6dYYoqte
Check the mock data. Based on that i would like to render footnotes, but since the paragraph can be on any page, since data is dynamic coming from an API call, i need a way of connecting those footnote text to the page where that paragraph is located. You will see that im also using the header-footer template with it, so i would like that text to be moved there. Is there a way of achieving this?
-
The pdf-utils page items should help
https://jsreport.net/learn/pdf-utils#adding-items-to-the-pageSee an updated demo
https://playground.jsreport.net/w/anon/tvwzA8cp
-
Thank you! This was exactly what I was looking for.