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:

  1. Ensure that a signature control has been added to the interview.
  2. In your template, insert a field for the signature attribute.

    BI Publisher Field dialog showing Insert button for selected field
  3. 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.)
  4. 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" ><?signature_image_data?></fo:instream-foreign-object>
    For example:
    Code for signature on Advanced tab in the BI Publisher Properties dialog
  5. Click OK.

An example of a signature field inserted into a template is:

Form template showing signature field

The resulting form with the signature inserted would look like this:

A generated form showing signature inserted

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:

  1. In Policy Modeling, add a signature control for the entity. It can be added to an entity collect or entity container.
  2. Change the appearance of the entity control as required.
  3. 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.
  4. Within this entity group, insert a field for the entity-level signature attribute.

    BI Publisher Field dialog showing Insert button for selected field
  5. 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.)
  6. 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:
    Code for entity-level signature on Advanced tab in the BI Publisher Properties dialog
  7. Click OK.

An example of a signature field inserted into a template for an entity (household member) is:

Form template showing signature field for entity-level signatures

The resulting form where signatures for each entity instance have been provided would look like this:

A generated form showing multiple signatures inserted