This opens so many cans of worms + im super interested how the so called protection works.
In practice, however, PDFs are usually created by readily available software which produces very regular PDFs that you can write converters for.
Ten years ago, there were no PDF editors available for normal people, so everyone treated PDF as read only files. Now PDF editors are common, but people still didn't notice the error.
Anecdote time: Las year during the pandemic I need to republish some old info, where the original doc files were lost or trapped inside the office while I was working from home. It was not necessary to have perfect formatting, so I just edited the PDF with an online editor. So, I realize last year how easy was to edit a PDF!