I’m aiming to create a React component that can take an HTML template (or any other markup) and a JSON object, and then render a preview of the file. The goal is for the rendered output to resemble pages, with each page represented as a rectangle containing text. Regardless of the size of the HTML and JSON inputs, each rectangle should have the dimensions of an A4 page. Importantly, I do not want to use a PDF viewer or convert my markup to a PDF format.
An example of the functionality I’m seeking can be found on the Resume Genius website: https://resumegenius.co/resume-builder/app/personalize. On this site, a preview is dynamically rendered based on the provided content and template. My goal is to achieve a similar dynamic rendering capability in my React component.
Thanks!
React-pdf, manually constructing an html page.
Brahim Hamid oudjana is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.