That can also really mess with screen readers and other accessibility features.
There's a reason PDF/A spec forbids scripts in any PDF documents that are expected to be available in the future.
[1] https://en.wikipedia.org/wiki/PDF/A