I have a considerably big doubt and I have no idea where to start.
The problem is that after passing the Cloud Vision OCR from Google to the document seen in the photo (although without the red boxes) I get a JSON file, which I will attach to a link because it has more than 130,000 lines. That JSON file must be used by a PHP to get all the text contained in the red boxes returned. I have thought about using json_decode in PHP and thus have the JSON file inside PHP, but I do not even know how to use it correctly. As expected, the scanned documents will be different and the texts will change relatively but the format will be exactly the same, the only thing that would have to be extracted would always be the bold titles of the sections.
Here I leave you in Dropbox the JSON file that produces the OCR
Any kind of contribution would be of great help to me, I am totally stuck for now.
Thank you in advance to everyone!