SAN FRANCISCO — Barry Bonds is swinging for the fences at the U.S. Court of Appeals for the Ninth Circuit.

In an opening brief filed Thursday, lawyers for the former Giants star argue that his conviction for obstructing justice cannot stand because it was based on “a truthful albeit rambling” statement, was never charged in his indictment, and was immaterial.