In Miracle Mobile Forms, the HTML Parser is responsible for generating PDF outputs of submitted forms, using HTML Templates. The Parser runs through the template, and generates the final output which is then converted into PDF.  

The Parser mainly works in two ways.

Pattern Based Mode

In the Pattern Based mode, generic HTML scripts are written for one or more controls. These scripts act as patterns which define how controls are parsed and added in the final HTML output.

The Parser passes each control in a form, and checks to see if a pattern has been defined for it. The Parser then implements the HTML script within the pattern to generate the final HTML document and, ultimately, the PDF output.

HTML Dictated Mode / Strict Mode

In this mode, you provide an HTML document which has control identifiers placed throughout the document. The Parser simply replaces the identifiers with actual values and generates the final HTML. This mode can be used for advanced HTML designs.