'Change text color/background in PDF on click using embedded JavaScript
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)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
