Except as otherwise provided by law, any officer of court who knowingly demands, as costs from a defendant in a criminal case, fees to which such officer is not entitled and any prosecuting attorney who demands or receives any fee or costs on any criminal case which has not been tried by a trial jury or otherwise finally disposed of shall be guilty of a misdemeanor.
OCGA § 15-13-35