Ford, who was knocked to the ground and pinned down by the heavy door, could have been killed in the incident as he rehearsed during shooting for Star Wars: The Force Awakens at Pinewood Studios in Buckinghamshire on 12 June 2014, a court heard.
Andrew Marshall, prosecuting, told Milton Keynes magistrates court that Ford had gone through the door with another actor and hit a button.
A film production company has admitted health and safety breaches after an incident in which Hollywood star Harrison Ford was crushed by a hydraulic door on the set of the Millennium Falcon spaceship while filming the latest Star Wars movie.
He started to walk back through the door, believing the set was not live and that it would not close.