A Brooklyn landlord who was arrested and shackled to a hospital bed for 17 days is taking her case against the city to a jury.

A trial is slated to begin Monday in the case of Karen Brim, who claims NYPD officers roughed her up in the stairwell of her Flatbush building as they pursued four teens who had been hanging out on the roof.

They chased the youths into Brim’s building, entering via the roof, as Brim was mopping a hallway, leading to the violent April 2012 encounter.

Brim, 44, says she tried to tell the officers the teens were visitors, not trespassers, but they threw her to the ground, leaving her leg broken in two places, according to court papers.

Brim was the attacker, claimed cops, who hit her with assault and other charges for swinging a broom at an officer and hitting him in the head. Those charges have since been dropped.

She ended up in Kings County Hospital, where she needed multiple surgeries, plates and screws to repair her leg.

It took more than two weeks for Brim to be arraigned on the assault charges, during which she says was handcuffed by her wrist and ankle to her hospital bed. Brim sued the city in 2013, claiming false arrest and unreasonable force, for unspecified damages.