C:\DITA\WKFS_oXygen_Files\fragments\webhelp.fragment.head.xml
Jump to main content C:\DITA\WKFS_oXygen_Files\fragments\webhelp.fragment.before.body.xml

# Adding an Image to Transaction Data

1. In the Requirements Editor tool, open the REQ file and navigate to the desired position in the document.
2. Select the element and right click to select Insert Element Before or After; select TransactionGraphic.
3. Click in the details area for the element, and right click to select Add Rule. Update the PTR for the rule to say PRINT /xpath for name of the transaction field that will have the base64 image.
4. Select the TransactionGraphic element, right click to select Add Attribute; select AlternateText. This is a best practice for ADA Compliance.
5. There are three additional attributes available for TransactionGraphics; PreserveSpace, Height, and Width. All three are considered optional. PreserveSpace is a Yes/No feature that will determine if the physical space will be kept if the field in the transaction is blank. We recommend that authors only use the Height attribute. The value for both Height and Width attributes are a numeric value followed by a unit of measure ex: .5in would reduce the image to only consume space of one-half inch high; and if PreserveSpace is set to yes, there will always be a half inch of space – either the image or blank space.
   The REQ is updated for inserting a transaction graphic and the image will appear in the assembled document.
   Figure 1. Example of REQ with TransactionGraphic
   Figure 2. Example of REQ with TransactionGraphic in a table
   Figure 3. Example of REQ with TransactionGraphic in a signature

C:\DITA\WKFS_oXygen_Files\fragments\webhelp.fragment.after.body.xml