Insert a Signature Into an RTF Form Template
Electronic signatures that are captured in an interview can be included in generated PDF forms. To insert a signature into an RTF form template:
- Ensure that a signature control has been added to the interview.
- In your template, insert a field for the signature attribute.

- Double-click on the field in the template to open the Oracle Analytics Publisher Properties dialog box. (If double-clicking the field does not open the dialog, re-load your XML.)
- Click on the Advanced tab. The code here must be modified to instruct Analytics Publisher to treat the data as an image and not as a string. The correct code is:
For example:<fo:instream-foreign-object content-type="image/jpg" xdofo:alt="An Image" ><?signature_image_data?></fo:instream-foreign-object>
- Click OK.
An example of a signature field inserted into a template is:
The resulting form with the signature inserted would look like this:
Tip: Signatures in forms are demonstrated in the Healthy Eating, myBenefits, My Store App and Safety Inspection example projects installed with Policy Modeling.
You can also include signatures for multiple parties in a form by inserting an entity-level signature field within an entity group. To do this:
- In Policy Modeling, add a signature control for the entity. It can be added to an entity collect or entity container.
- Change the appearance of the entity control as required.
- In your form template, insert fields to indicate the start and end of an entity group. For more information, see Insert entity-level attributes into a form.
- Within this entity group, insert a field for the entity-level signature attribute.

- Double-click on the field in the template to open the Oracle Analytics Publisher Properties dialog box. (If double-clicking the field does not open the dialog, re-load your XML.)
- Click on the Advanced tab. The code here must be modified to instruct Analytics Publisher to treat the data as an image and not as a string. The correct code is:
<fo:instream-foreign-object content-type="image/jpg" xdofo:alt="An Image" ><?entity_name_signature_image_data?></fo:instream-foreign-object>
For example:
- Click OK.
An example of a signature field inserted into a template for an entity (household member) is:
The resulting form where signatures for each entity instance have been provided would look like this: