I assume it would have to be a Tagged PDF.
Does InDesign output Tagged PDF by default? Or does it output PDF/A by default (I doubt it)?
https://indesignsecrets.com/reasons-...tagged-pdf.php
https://helpx.adobe.com/indesign/usi...ring-pdfs.html
I bet most of the people using InDesign don't even think about it, and just continue to export PDFs without that functionality.
I opened up a handful of InDesign files I got from publishers and went looking into the tags. They didn't exist.