Always use PDF/A-1a (Tagged PDF) which contains the text in accessible format. For many governments this a legal requirement.
With tagged PDF it's easy to get the text out.
With tagged PDF it's easy to get the text out.
There is a POC package for producing Tagged PDF here https://github.com/AndyClifton/accessibility but it's not a complete solution yet.
Here is an excellent review article that talks about all the other options for producing Tagged PDFs from LaTeX (spoiler — there is no solution currently): https://umij.wordpress.com/2016/08/11/the-sad-state-of-pdf-a... via https://news.ycombinator.com/item?id=24444427
As in Healthcare.
A flattened XFA/XDP PDF (no interactive elements) is more or less a PDF/A.