Barcodes as an Ancillary Output Option

To implement a barcode, you need to first identify the need for a barcode on a document. Then, define the requirements for the barcode, including its appearance, labeling, and type. After that, you must submit a request with instructions for the barcode and the transaction data needed to process the barcode instructions.

Barcodes are only applied to documents that are generated by the Expere Document Services, Document Generation Services, and Expere IE. Barcodes are added to all pages within the generated document and any documents within a package. It is not possible to selectively apply barcodes to specific pages within a document.

The barcode object can be submitted as part of the AncillaryOutputObjects on a document generation request to generate barcodes on all documents within a requested package. Alternatively, the barcode object can be submitted on the DocumentSet or Document object on a document generation request to generate unique barcodes on a document by document basis.

In the ExpereAPI, barcodes are implemented as part of the AncillaryOutputOptions object on several operations used to generate documents, including:
Using the DocumentSet object, to apply a unique barcode to individual documents, they are implemented on the following operations:
To add barcoding to a document using these API calls, you need to follow these steps:
  1. Define the parameters of the barcode in the Barcode object.
  2. Submit the Barcode object within the AncillaryOutputOptions object in the request.
Following is an example of an AncillaryOutputOptions submitted on a request that will generate a barcode.
<exp:AncillaryOutput>
 <!--Zero or more repetitions:-->
 <exp:AncillaryOutputOption>
 <exp:OutputType>Barcode</exp:OutputType>
 <exp:Barcode>
 <exp:Type>barcode128</exp:Type>
 <exp:Pattern>Page_%page%_of_%totalpages%_%date%_Doc_%docsequence%_of_%docsequencetotal%</exp:Pattern>
 <exp:UseCoverPage>True</exp:UseCoverPage>
 </exp:Barcode>
 </exp:AncillaryOutputOption>
</exp:AncillaryOutput>
<exp:AncillaryOutputOptions>
 <!--Zero or more repetitions:-->
 <exp:AncillaryOutputOption>
 <exp:OutputType>Barcode</exp:OutputType>
 <exp:Barcode>
 <exp:Type>barcode128</exp:Type>
 <exp:Pattern>Page_%page%_of_%totalpages%_%date%_Doc_%docsequence%_of_%docsequencetotal%</exp:Pattern>
 <exp:UseCoverPage>True</exp:UseCoverPage>
 </exp:Barcode>
 </exp:AncillaryOutputOptions>
</exp:AncillaryOutput>
<exp:AncillaryOutputOptions>
 <exp:OutputType>Barcode</exp:OutputType>
 <exp:Barcode>
 <exp:Type>barcode128</exp:Type>
 <exp:Pattern>Page_%page%_of_%totalpages%_%date%_Doc_%docsequence%_of_%docsequencetotal%</exp:Pattern>
 <exp:UseCoverPage>True</exp:UseCoverPage>
 </exp:Barcode>
</exp:AncillaryOutputOptions>
The barcode is rendered on a generated document, as follows:

Setting the Barcode Height

Note: The maximum barcode height is .44pts/.61in. If anyathing larger is specified, only additional white space is reserved and the barcode height will be .44pts/.61 inches.
You can set the height of the barcode by:
  1. Right-clicking the Barcode element and selecting Add Child Element > Height. The Height element is added and given focus.

  2. Double-click the associated contents (ENTER CONTENTS HERE) and type the desired height in inches or points. Examples: 0.67in or 32pt.
    Note:
    • Values entered in points are automatically converted to inches.
    • If you change the barcode height, it is recommended to test the barcode with scanning software for readability.