Participant
April 6, 2024
Answered
Dynamic HTML to PDF how to declare JSON variables in the HTML - no documentation
- April 6, 2024
- 1 reply
- 1593 views
I cannot find ANY indication of how to insert placeholders for JSON values in the HTML code so that they populate with the JSON data when generating the PDF.
There is documentation on the Adobe Website for PDF creation from JSON template data on the WORD version {{variable}} but nothing on Dynamic HTML.
I am able to generate the PDF from the HTML but the JSON array I am passing does not change the text in the document.
Can someone clarify the syntax/format of how to declare the JSON variables in HTML please?
JSON : {"PageContent": "Test"}
HTML : <!DOCTYPE html><html><body>{{PageContent}}</body></html>
PDF generated attached
