I'm not sure you are going to find a solution.

If we knew what problem you are trying to solve instead of how you have decided to solve it we might be able to back your train up to a point where another more viable path could be taken instead.

If your problem is really "Users have Word documents they will copy and paste into my application and I have to decode this crap and somehow stuff it into a database" well... yeah, then you're stuck.

But if the real problem is something entirely different and you are just stuck down here in the weeds due to choices you made then people might have alternatives to suggest.

Is Word even in the picture at all because you made it part of the problem?

As I asked, can you back this train up closer to the departing station? You seem to be on the track to Crazy Town, and you may not have a path to the real destination beyond that. Crazy Town may be at the end of the line.