The PDF form designer is hosted through the same controller action, which also persists the edited form on the FormSave action.

Initialize with a form, and save on demand.
case "Initialize":
    var initData = StiWebForm.Initialize(data, Initialize(data));
    return Json(initData.Content);

case "FormSave":
    var form = new StiForm();
    form.Load(Convert.FromBase64String(data["form"].ToString()));
    form.Save(GetFilePath("Forms", data["formName"].ToString()));
    return Json("{result: \"ok\"}");

How it works. The designer round-trips the form through the controller, so users edit templates in the browser and saves are written to disk.

By using this website, you agree to the use of cookies for analytics and personalized content. Cookies store useful information on your computer to help us improve efficiency and usability. For more information, please read the privacy policy and cookie policy.