Reference: Report-IV Bar Codes
Report-IV to PDF will now support UPC barcodes in Report-IV to PDF.
The barcode feature in Report-IV is font based. The Report-IV definition contains the string characters that are to be converted to a barcode image. By manipulating fonts, the converted PDF file will contain the barcode image of the string characters.
Prior to executing a CONNECT REPORT or within the I section of a Report-IV definition, enable the barcode flag #OOFPDF1.BARCODE-ENABLED = "Y". If this is not set, the barcode feature will not work.
In the I section of the Report-IV definition do FORMAT INCLUDE #OOFPDF1,OPT="NONE".
Immediately before the D line containing the barcode value, create a formula field to set the PDF font face value to "3of9":
/FIELD(35) = "<FONT FACE="+QUO+"3of9"+QUO+">"
To increase or decrease the size of the barcode image, use the SIZE= option:
/FIELD(35) = "<FONT FACE="+QUO+"3of9"+QUO+" SIZE=12>"
Print the data element containing the barcode string value then restore the normal PDF font. It is critical that you restore the current values for the PDF font and size:
/FIELD(35) = "<FONT FACE="+QUO+"courier"+QUO+"SIZE="+#OOFPDF1.FONT-SIZE-USED+">"
The above can be combined into a single formula:
/FIELD(52) = "<FONT FACE="+QUO+"3of9"+QUO+">"+CUST-CODE+"<FONT FACE="+QUO+"courier"+QUO+ " SIZE="+#OOFPDF1.FONT-SIZE-USED+">"
The barcode image will occupy more than 1 line in the PDF, Report-IV can only count the 1 line used for the barcode string value. Print the appropriate number of blank D lines to accommodate the barcode image height. Use /LC to adjust the line count accordingly.
Thoroughbred does not supply the barcode font but does recommend the 3of9 barcode font.