I'm developing a system using React where users can create invoice templates using a drag-and-drop interface. I need help with the following:
Template Storage Format: What is the best format for storing these templates on the backend?
Backend Processing: Once the template is stored, the backend should be able to:
- Receive the invoice amount and other relevant details.
- Map these details to the selected template.
- Generate a PDF based on the populated template.
Could you suggest an approach for handling these tasks effectively?