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.

Harrison, 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 June 12 2014, a court heard.

Harrison Ford at the 73rd Annual Golden Globe Awards
Harrison Ford was crushed by a hydraulic door on the set of the Millennium Falcon spaceship while filming the latest Star Wars movie (Jordan Strauss / AP/PA Images)

The then 71-year-old was reprising his role as Han Solo when he was hit by the door, which had been designed to mimic the action of a door on the original set.

Foodles Production (UK) Ltd, which is owned by Disney, admitted two breaches under health and safety law.

Prosecuting at Milton Keynes Magistrates’ Court, Andrew Marshall said that the actor had gone through the door with another actor and hit a button,

He started to walk back through the door, believing the set was not live and that it would not close.

But the court heard it was remotely operated by another person, and that as the star passed underneath it he was hit in the pelvic area and pinned to the ground.

Star Wars: The Force Awakens European Premiere in London
A film production company has admitted health and safety breaches after the incident involving Harrison Ford (Anthony Devlin / PA Archive/PA Images)

Mr Marshall said there was a “risk of death”, saying: “It could have killed somebody. The fact that it didn’t was because an emergency stop was activated.”

The actor was severely injured and left with a broken left leg in the incident, and was airlifted to hospital in Oxford.

Mr Marshall said the circumstances created a risk of death and had the emergency stop button not been pressed the situation could have “eventuated differently”.

The Health and Safety Executive (HSE) said the the power of the rapidly closing metal-framed door meant Harrison was hit with a power comparable to the weight of a small car.

Harrison Ford as Han Solo on Empire magazine
Harrison Ford, pictured on the cover of Empire magazine, reprised his role as Han Solo in the seventh Star Wars film (Empire / PA Images)

The Hollywood star himself talked about the incident during an appearance on The Jonathan Ross Show before Christmas, referring to the “f****** great hydraulic door”.

Foodles pleaded guilty to one count under section two of the Health and Safety at Work Act 1974, which related to a breach of duty in relation to employees, and a second under section three, a breach over people not employed by the company.

Two further charges, under Regulation 3(1) of the Management of Health and Safety at Work Regulations 1999, and one under Regulation 11(1) of the Provision and Use of Work Equipment Regulations 1998 were both withdrawn as the facts will be incorporated into the two admitted breaches.

The company will be sentenced at Aylesbury Crown Court over the breaches, expected to happen on August 22.