PDF is an open spec--even though it is so complicated that there's only one complete implementation which costs money.
https://www.loc.gov/preservation/digital/formats/fdd/fdd0003...
PDF/A is in use in several government institutions already, and there are validators out there etc.