The following example enables you to make a live update of the HTML document (either by changing the HTML code or by tapping on one of the fields), and then export it to a PDF.