/* Filename:    J017_onDecodeSymbology.js
 * Description: Filter/transform decoded data based on Symbology
 * Copyright:   2006 The Code Corporation. Please see http://www.codecorp.com/jsLicensing.html for information regarding copyright and grant of license.
 * $Revision: 118 $
 * $Date: 2006-12-05 16:26:51 -0700 (Tue, 05 Dec 2006) $
 */

include(".crx.js");

reader.onDecodeOld = reader.onDecode;

reader.onDecode = function(decode)
{
    //if symbology is PDF 417, turn 'A' into 'a'
    
    if( decode.symbology == 38) //CodeCorp Symbology Identifier (38 is PDF417)
    {
        decode.data = decode.data.replace(/A/g, "a");
    }
    
    return reader.onDecodeOld(decode);
}


//EOF

