Create a business card using JavaScript and save the .cdr file locally

I have a business card ordering portal.

Each time I get an order I need to edit the details manually according to the template.

If I have a fixed template, How can I create a business card using JavaScript and save the .cdr file somewhere