If your problem is too large for you to see the solution, break it down into smaller parts. For example, you said your data is in a pdf and you want to organize the data into a new pdf with a new setup, (by a unique id). So that tells me you need to take the data in, organize it, and send it back out.
Start off with an outline of how you think you would need to do that, and don't worry about the code for now. Get your plan organized and turn that into code later.
Pretend you need to do only one person at first. Get the data from the source, organize that data, and output it. If you get stuck along the way, just ask questions...