I canβt answer specifically how you will do it, but I thought it would be interesting (with some painful curiosity) to check the Adobe PDF Specification to see if the specification itself supports it.
In Version 1.7, Section 8.5.3 Action Types (PDF) , it mentions Rich Media commands, as well as the ability to execute arbitrary ActionScript or Javascript. So, because of its sounds - yes, you could do it, assuming you can change the contents of the document (or show / hide elements) at runtime.
However, it is probably worth noting that many people do not use or cannot use Adobe Acrobat to read PDF files, so using additional features such as this can have unwanted side effects and can make the document unreadable.
user111013
source share