export default function setRadioAppearance ( doc ) { const oldAppearanceFuncition = doc . AcroFormAppearance . RadioButton . Circle . YesNormal ; doc . AcroFormAppearance . RadioButton . Circle . YesNormal = function ( formObject ) { const xobj = oldAppearanceFuncition ( formObject ) ; const stream = xobj . stream . split ( '\n' ) ; const encodeColor = doc . __private__ . encodeColorString ( formObject . color ) ; stream [ 0 ] = stream [ 0 ] + '\n' + encodeColor + '\n' + encodeColor . toUpperCase ( ) ; xobj . stream = stream . join ( '\n' ) ; return xobj ; } ; }