Two appliances and crews from High Wycombe, along with an officer attended.
The firefighters used hydraulic tools and small tools to release a man, passing him into the care of colleagues from South Central Ambulance Service.
Thames Valley Police also attended.