There are many ways to flatten it. Router, by hand, etc. These take some effort though. When I get a situation like this I try to find the flattest boards I can. I've had some success running them through my planer without the lockdown on. It will tend to take down some of the high points. But, it's only for wood that is pretty true to begin with. After that I use the jointer on the edge assuming the larger side is flat. So, it's reverse of the normal process.
Other than that, a router carriage or sled with a planing bit works well but takes some special jigs that you can make and time.
Other than that, a router carriage or sled with a planing bit works well but takes some special jigs that you can make and time.