I had in mind idea of generating pdf documents, that can switch between light and dark theme (i.e. black text on white background and vice versa) when user clicks a lint/text/button in PDF itself.
I know you can embed JavaScript in PDF, I checked Acrobat specification but found no mention of changing text color/background or any concept like layouts.
Is it something that can be done using embedded JavaScript? And ideally, would it work in embedded Chrome pdf viewer? I know it has very limited subset of functions (more details here)